Adapted say module to IRC. Made greeting configurable. Fixed Trivia end-of-game leaderboard breaking.
This commit is contained in:
+4
-1
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user