mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: error when msg is empty
This commit is contained in:
parent
5989d81f56
commit
6f0e62b54d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue