mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
added message sending and PM channel resolving
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user