From 4ff31f307eb27738934d356f967cf34a20bcf882 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 26 Feb 2021 16:43:51 -0600 Subject: [PATCH] Fix excess logging --- bot/awesomescibo.mjs | 3 +-- bot/package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 3667191..92f343e 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -33,7 +33,7 @@ client.on('message', async message => { if (message.content.startsWith("do be announcing") && message.author.id === "745063586422063214") { var announcement = message.content.substring(17); client.guilds.cache.array().forEach((guild) => { - guild.channels.cache.find(channel => channel.name === 'general').send(announcement); + guild.channels.cache.find(channel => channel.name === 'general').send(announcement).catch((error) => { console.log(error) }) }); } if (message.content.toLowerCase() === "do be hits") { @@ -283,7 +283,6 @@ client.on('message', async message => { }) }) .catch (collected => { - console.log(collected); message.reply('\n**ANSWER TIMEOUT**'); }) }) diff --git a/bot/package.json b/bot/package.json index 21b8cbb..3dbbfed 100644 --- a/bot/package.json +++ b/bot/package.json @@ -5,7 +5,7 @@ "node-fetch": "^2.6.1" }, "name": "awscibo", - "version": "0.1.0", + "version": "0.2.0", "main": "awesomescibo.mjs", "bin": { "awscibo": "./awesomescibo.mjs"