Fixed bug with emote, removed admin section from help

This commit is contained in:
TheEssem 2020-01-12 12:27:16 -06:00
parent 6bb0620c79
commit 35cec45196
5 changed files with 105 additions and 207 deletions

View file

@ -54,7 +54,7 @@ module.exports = async (message) => {
await client.createMessage(message.channel.id, result);
}
} catch (error) {
logger.error(error.stack);
logger.error(error.toString());
await client.createMessage(message.channel.id, "Uh oh! I ran into an error while running this command. Please report the content of the attached file here or on the esmBot Support server: <https://github.com/TheEssem/esmBot/issues>", [{
file: Buffer.from(`Message: ${error}\n\nStack Trace: ${error.stack}`),
name: "error.txt"