mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 定时任务的错误
This commit is contained in:
parent
3692dd951c
commit
a6a73a0822
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export class Entertainment extends plugin {
|
||||||
async sendMessage (e) {
|
async sendMessage (e) {
|
||||||
let groupId = e.msg.replace(/^#(chatgpt|ChatGPT)打招呼/, '')
|
let groupId = e.msg.replace(/^#(chatgpt|ChatGPT)打招呼/, '')
|
||||||
groupId = parseInt(groupId)
|
groupId = parseInt(groupId)
|
||||||
if (!Bot.getGroupList().get(groupId)) {
|
if (groupId && !Bot.getGroupList().get(groupId)) {
|
||||||
await e.reply('机器人不在这个群里!')
|
await e.reply('机器人不在这个群里!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue