Adapted say module to IRC. Made greeting configurable. Fixed Trivia end-of-game leaderboard breaking.

This commit is contained in:
2022-10-18 00:08:17 +02:00
parent 4ce3f77c63
commit 809102f2fe
4 changed files with 25 additions and 10 deletions
+4 -1
View File
@@ -185,7 +185,10 @@ async function init() {
logger.info(`Joining ${channel}`);
client.join(channel, () => logger.info(`Joined ${channel}`));
client.say(channel, `Hi, I am ${config.user.username}, your game host!`);
if (config.greeting) {
client.say(channel, config.greeting);
}
});
client.addListener('message', (from, to, body) => onMessage({