fix: 依赖

This commit is contained in:
ikechan8370 2023-04-20 17:10:18 +08:00
parent 3cfbe9eae7
commit e0d3395a77
2 changed files with 15 additions and 2 deletions

View file

@ -64,7 +64,11 @@ export class Entertainment extends plugin {
}
await e.reply('在统计啦,请稍等...')
await redis.set('CHATGPT:WORDCLOUD:ALL', '1', { EX: 600 })
await makeWordcloud(e, e.group_id)
try {
await makeWordcloud(e, e.group_id)
} catch (err) {
await e.reply(err)
}
await redis.del('CHATGPT:WORDCLOUD:ALL')
} else {
await e.reply('请在群里发送此命令')