Added CHANNEL_UPDATE listener

This commit is contained in:
hydrabolt
2015-11-01 14:57:48 +00:00
parent 74bd0d5dad
commit 5b7a3dd3a1
4 changed files with 76 additions and 6 deletions

View File

@@ -13,8 +13,8 @@ a.on("message", m => {
a.reply(m, srv);
});
});
a.on("channelCreated", (channel) => {
console.log(channel);
a.on("channelUpdated", (o, n) => {
a.sendMessage(o, o.name + " v " + n.name);
});
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e));