fix: 使用不存在的设定的bug

This commit is contained in:
ikechan8370 2023-04-21 15:02:49 +08:00
parent c35c3a66ce
commit 26b4534cfb

View file

@ -138,7 +138,8 @@ export class help extends plugin {
content: Config.sydney content: Config.sydney
} }
} else { } else {
await this.importPrompt(`#chatgpt导入设定${promptName}`) e.msg = `#chatgpt导入设定${promptName}`
await this.importPrompt(e)
prompt = getPromptByName(promptName) prompt = getPromptByName(promptName)
if (!prompt) { if (!prompt) {
await e.reply('没有这个设定', true) await e.reply('没有这个设定', true)