fix: 优化一些稳定性

This commit is contained in:
ikechan8370 2023-03-29 11:38:43 +08:00
parent 1563e49a25
commit 54f68132f9
3 changed files with 9 additions and 5 deletions

View file

@ -506,7 +506,7 @@ export class chatgpt extends plugin {
async chatgpt (e) {
let prompt
if (this.toggleMode === 'at') {
if (!e.raw_message || e.msg.startsWith('#')) {
if (!e.raw_message || e.msg?.startsWith('#')) {
return false
}
if (e.isGroup && !e.atme) {