mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
parent
414eb1b098
commit
2895d89fdb
1 changed files with 4 additions and 4 deletions
|
|
@ -936,7 +936,7 @@ export class ChatgptManagement extends plugin {
|
|||
|
||||
async setAdminPassword (e) {
|
||||
if (e.isGroup || !e.isPrivate) {
|
||||
await this.reply('请私聊发生命令', true)
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
this.setContext('saveAdminPassword')
|
||||
|
|
@ -946,7 +946,7 @@ export class ChatgptManagement extends plugin {
|
|||
|
||||
async setUserPassword (e) {
|
||||
if (e.isGroup || !e.isPrivate) {
|
||||
await this.reply('请私聊发生命令', true)
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
this.setContext('saveUserPassword')
|
||||
|
|
@ -1000,7 +1000,7 @@ export class ChatgptManagement extends plugin {
|
|||
|
||||
async adminPage (e) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || e.isPrivate)) {
|
||||
await this.reply('请私聊发生命令', true)
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
const viewHost = Config.serverHost ? `http://${Config.serverHost}/` : `http://${await getPublicIP()}:${Config.serverPort || 3321}/`
|
||||
|
|
@ -1009,7 +1009,7 @@ export class ChatgptManagement extends plugin {
|
|||
|
||||
async userPage (e) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || e.isPrivate)) {
|
||||
await this.reply('请私聊发生命令', true)
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
const viewHost = Config.serverHost ? `http://${Config.serverHost}/` : `http://${await getPublicIP()}:${Config.serverPort || 3321}/`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue