Updated deleted and update message listeners

This commit is contained in:
hydrabolt
2015-10-31 23:31:18 +00:00
parent 4b4b7d6a47
commit 6d6dcf533a
4 changed files with 50 additions and 2 deletions

View File

@@ -17,6 +17,17 @@ a.on("message", function (m) {
});
});
a.on("messageUpdated", function(newm, oldm){
if(oldm){
a.sendMessage(oldm, `woah! ${newm.author} changed their message! how rude`)
}
})
a.on("messageDeleted", function(oldm){
if(oldm){
a.sendMessage(oldm, `woah! ${oldm.author} deleted their message! how rude`)
}
})
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
return console.log(e);
});