mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: group admin page condition error
This commit is contained in:
parent
c0aeceb4a4
commit
a3a16bc5ff
1 changed files with 2 additions and 2 deletions
|
|
@ -999,7 +999,7 @@ export class ChatgptManagement extends plugin {
|
|||
}
|
||||
|
||||
async adminPage (e) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || e.isPrivate)) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || !e.isPrivate)) {
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
|
|
@ -1008,7 +1008,7 @@ export class ChatgptManagement extends plugin {
|
|||
}
|
||||
|
||||
async userPage (e) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || e.isPrivate)) {
|
||||
if (!Config.groupAdminPage && (e.isGroup || !e.isPrivate)) {
|
||||
await this.reply('请私聊发送命令', true)
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue