Added message deletion

This commit is contained in:
hydrabolt
2015-08-25 16:59:11 +01:00
parent b47d62b151
commit 8eb1afa371
3 changed files with 66 additions and 9 deletions

View File

@@ -18,7 +18,9 @@ mybot.on("message", function (msg) {
if(msg.content === "pmme"){
console.log("yes we found it!");
mybot.reply(msg, "You know what "+msg.sender+"? NO");
mybot.reply(msg, "You know what "+msg.sender+"? NO").then(function(msg){
mybot.deleteMessage(msg, 5000);
});
}
});