Browse Source

Fix callback catch blocks to perform actions other than logging to the console

pull/10/head
Abheek Dhawan 4 years ago
parent
commit
32c88c512d
  1. 14
      bot/awesomescibo.js

14
bot/awesomescibo.js

@ -235,21 +235,17 @@ function training(subject, interaction) {
overrideMsg
.awaitReactions(filter, {
max: 1,
time: 600000,
errors: ["time"],
})
.then((userReaction) => {
updateScore(true, score, authorId).then((msgToReply) =>
answerMsg.reply(msgToReply)
);
});
})
}).catch(console.error);
}).catch(console.error);
}
})
.catch(console.error);
});
})
.catch(console.error);
}).catch(interaction.editReply("Sorry, the question timed out waiting for an answer."));
}).catch(console.error);
}).catch(interaction.reply("Sorry, there was a problem fetching the question. Please try again!"));
}
function sendHelpMessage(interaction) {

Loading…
Cancel
Save