added message update listening

This commit is contained in:
hydrabolt
2015-08-24 18:31:39 +01:00
parent 090b9dbcff
commit ead8287881
3 changed files with 154 additions and 62 deletions

View File

@@ -18,4 +18,10 @@ mybot.on("messageDelete", function(channel, message){
console.log("MESSAGE WAS DELETED BY " + ( message ? message.author.username : channel.name ));
});
});
mybot.on("messageUpdate", function(message, formerMessage){
console.log(message.author.username, "changed", formerMessage.content, "to", message.content);
})