mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: 优化日志
This commit is contained in:
parent
62b64ed92f
commit
2c5d573ec2
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ export class Entertainment extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendRandomMessage () {
|
async sendRandomMessage () {
|
||||||
|
logger.info('开始处理:ChatGPT随机打招呼。')
|
||||||
let toSend = Config.initiativeChatGroups || []
|
let toSend = Config.initiativeChatGroups || []
|
||||||
for (let i = 0; i < toSend.length; i++) {
|
for (let i = 0; i < toSend.length; i++) {
|
||||||
let groupId = parseInt(toSend[i])
|
let groupId = parseInt(toSend[i])
|
||||||
|
|
@ -60,6 +61,8 @@ export class Entertainment extends plugin {
|
||||||
} else {
|
} else {
|
||||||
await Bot.sendGroupMsg(groupId, message)
|
await Bot.sendGroupMsg(groupId, message)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logger.info(`这次就不打招呼给群聊${groupId}了`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn('机器人不在要发送的群组里,忽略群' + groupId)
|
logger.warn('机器人不在要发送的群组里,忽略群' + groupId)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue