Added message deletion

This commit is contained in:
hydrabolt
2015-08-24 18:13:53 +01:00
parent 14cbcc4873
commit 090b9dbcff
5 changed files with 270 additions and 107 deletions

View File

@@ -8,4 +8,14 @@ mybot.login(Auth.email, Auth.password, function(err, res){
mybot.on("ready", function(){
console.log("Ready!");
})
})
mybot.on("message", function(msg){
console.log("Another message by "+msg.author.username+"... now I have "+mybot.messages.length);
})
mybot.on("messageDelete", function(channel, message){
console.log("MESSAGE WAS DELETED BY " + ( message ? message.author.username : channel.name ));
});