fix: 不允许其他设置未生效的问题

This commit is contained in:
ikechan8370 2023-03-20 23:03:04 +08:00
parent c53b86c181
commit f4a94f61db

View file

@ -799,6 +799,9 @@ export class chatgpt extends plugin {
} }
async chatgpt1 (e) { async chatgpt1 (e) {
if (!Config.allowOtherMode) {
return false
}
let ats = e.message.filter(m => m.type === 'at') let ats = e.message.filter(m => m.type === 'at')
if (!e.atme && ats.length > 0) { if (!e.atme && ats.length > 0) {
if (Config.debug) { if (Config.debug) {
@ -815,6 +818,9 @@ export class chatgpt extends plugin {
} }
async chatgpt3 (e) { async chatgpt3 (e) {
if (!Config.allowOtherMode) {
return false
}
let ats = e.message.filter(m => m.type === 'at') let ats = e.message.filter(m => m.type === 'at')
if (!e.atme && ats.length > 0) { if (!e.atme && ats.length > 0) {
if (Config.debug) { if (Config.debug) {
@ -831,6 +837,9 @@ export class chatgpt extends plugin {
} }
async chatglm (e) { async chatglm (e) {
if (!Config.allowOtherMode) {
return false
}
let ats = e.message.filter(m => m.type === 'at') let ats = e.message.filter(m => m.type === 'at')
if (!e.atme && ats.length > 0) { if (!e.atme && ats.length > 0) {
if (Config.debug) { if (Config.debug) {
@ -847,6 +856,9 @@ export class chatgpt extends plugin {
} }
async bing (e) { async bing (e) {
if (!Config.allowOtherMode) {
return false
}
let ats = e.message.filter(m => m.type === 'at') let ats = e.message.filter(m => m.type === 'at')
if (!e.atme && ats.length > 0) { if (!e.atme && ats.length > 0) {
if (Config.debug) { if (Config.debug) {