fix: error when msg is empty

This commit is contained in:
ikechan8370 2022-12-09 17:32:31 +08:00
parent 5989d81f56
commit 6f0e62b54d

View file

@ -116,7 +116,7 @@ export class chatgpt extends plugin {
* @param e oicq传递的事件参数e
*/
async chatgpt (e) {
if (e.msg.startsWith("#")) {
if (!e.msg || e.msg.startsWith("#")) {
return
}
if (e.isGroup && !e.atme) {