added message sending and PM channel resolving

This commit is contained in:
hydrabolt
2015-08-25 15:44:18 +01:00
parent 4f179901c6
commit 5f812f7c90
5 changed files with 579 additions and 107 deletions

View File

@@ -15,8 +15,12 @@ mybot.on("ready", function () {
})
mybot.on("message", function (msg) {
console.log("Another message by " + msg.author.username + "... now I have " + mybot.messages.length + " I have been online for " + mybot.uptime);
})
if(msg.content === "pmme"){
mybot.sendMessage(msg.channel, "You know what "+msg.sender+"? NO");
}
});
mybot.on("messageDelete", function (channel, message) {