Fixed crash with announcer

This commit is contained in:
2021-07-03 22:51:19 +02:00
parent 57d37a7b0b
commit ee88a48fa5
3 changed files with 4 additions and 2 deletions

View File

@@ -25,7 +25,8 @@ module.exports = function (bot, api) {
} else {
str = printf(api.strings.USER_JOINED, username);
}
const filepath = await api.generateVoice(str, api.announcementEngine, api.announcementVoice);
api.queue.add(__dirname + "/sysmsg.wav");
api.queue.add(channel, str);
api.queue.add(filepath);
})
}