Browse Source

Fix excess logging

pull/1/head
Abheek Dhawan 4 years ago
parent
commit
4ff31f307e
  1. 3
      bot/awesomescibo.mjs
  2. 2
      bot/package.json

3
bot/awesomescibo.mjs

@ -33,7 +33,7 @@ client.on('message', async message => {
if (message.content.startsWith("do be announcing") && message.author.id === "745063586422063214") { if (message.content.startsWith("do be announcing") && message.author.id === "745063586422063214") {
var announcement = message.content.substring(17); var announcement = message.content.substring(17);
client.guilds.cache.array().forEach((guild) => { 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") { if (message.content.toLowerCase() === "do be hits") {
@ -283,7 +283,6 @@ client.on('message', async message => {
}) })
}) })
.catch (collected => { .catch (collected => {
console.log(collected);
message.reply('\n**ANSWER TIMEOUT**'); message.reply('\n**ANSWER TIMEOUT**');
}) })
}) })

2
bot/package.json

@ -5,7 +5,7 @@
"node-fetch": "^2.6.1" "node-fetch": "^2.6.1"
}, },
"name": "awscibo", "name": "awscibo",
"version": "0.1.0", "version": "0.2.0",
"main": "awesomescibo.mjs", "main": "awesomescibo.mjs",
"bin": { "bin": {
"awscibo": "./awesomescibo.mjs" "awscibo": "./awesomescibo.mjs"

Loading…
Cancel
Save