Added channelUpdate listener

This commit is contained in:
hydrabolt
2015-09-27 17:54:03 +01:00
parent 16d2410450
commit c32f600a6a
3 changed files with 41 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ mybot.on("ready", function () {
console.log("im ready");
for(var chann of mybot.channels){
mybot.setTopic(chann, "HELLO I AM A BOT BOOP BOOP");
mybot.setTopic(chann, "THINGS");
}
});
@@ -44,6 +44,12 @@ mybot.on("unknown", function(info){
console.log("warning!", info);
})
mybot.on("channelUpdate", function(oldChan, newChan){
console.log(oldChan.topic + " vs " + newChan.topic);
});
function dump(msg) {
console.log(msg);
}