added setPlaying and now working on docs

This commit is contained in:
hydrabolt
2015-09-30 20:47:26 +01:00
parent a99b628fcf
commit 46846fcacc
7 changed files with 149 additions and 20 deletions

View File

@@ -4,6 +4,8 @@ var fs = require("fs");
var server, channel, message, sentMessage = false;
counter = 1;
mybot.on("message", function (message) {
console.log("Everyone mentioned? " + message.everyoneMentioned);
@@ -19,16 +21,14 @@ mybot.on("message", function (message) {
var onlineUsers = 0;
mybot.startTyping(message.channel, 6000);
counter++;
mybot.playingGame( "Minecraft" );
});
mybot.on("ready", function () {
console.log("im ready");
for(var chann of mybot.channels){
mybot.setTopic(chann, "THINGS");
}
});
mybot.on("debug", function(info){