From 1f21f63ada57af176fc1059f9a94f908b71d0446 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 21 Dec 2021 15:24:48 -0600 Subject: [PATCH] Adjust some logging --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 2c2ff53..cba9168 100644 --- a/src/main.ts +++ b/src/main.ts @@ -66,10 +66,10 @@ client.on(`chat`, (channel, ctx, msg, self) => { let answer = msg.match(/\([ABCDEF]\)/i); if (answer) { let letter = answer[0].slice(1,2).toUpperCase(); - log.info(`${ctx.username} voted for answer: ${letter}`); // client.say(channel, `${ctx.username} voted for answer: ${answer[0]}`) if (user_answers[ctx.username] == null) { + log.info(`${ctx.username} voted for answer: ${letter}`); user_answers[ctx.username] = letter; }; }; @@ -89,10 +89,10 @@ client.on(`chat`, (channel, ctx, msg, self) => { }; if (!commands[cmd[0]]) { - log.warn(`${ctx.username} tried to run an invalid command`); + // No-OP } else { - log.info(`${ctx.username} is running a command`); + log.info(`${ctx.username} is running a command (${cmd[0]})`); let response = commands[cmd[0]](cmd.slice(1)); if (response.length > 0) {