fix: add log

This commit is contained in:
ikechan8370 2023-03-05 16:45:50 +08:00
parent 7a320bc772
commit 84843800b5

View file

@ -53,6 +53,7 @@ export class Entertainment extends plugin {
if (Bot.gl[groupId]) {
if (Math.floor(Math.random() * 100) < 10) {
let message = await generateHello()
logger.info(`打招呼给群聊${groupId}` + message)
if (Config.defaultUseTTS) {
let audio = await generateAudio(message, '随机')
await Bot.sendGroupMsg(groupId, segment.record(audio))