Skip to content

Commit

Permalink
client error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon1320 committed Oct 18, 2018
1 parent 9eb20d8 commit 406635d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,16 @@ client.on("emojiDelete", emoji => {
client.on("emojiUpdate", (oldEmoji, newEmoji) => {
});
*/

// temp error handling
let lastMessage = null;

client.on("error", error => {
//client

console.error(`${lastMessage.author.username} - ${lastMessage.content}`);
});
/*
client.on("guildBanAdd", (guild, user) => {
});
Expand Down

0 comments on commit 406635d

Please sign in to comment.