added log retrieval

This commit is contained in:
hydrabolt
2015-08-25 18:56:56 +01:00
parent ab424ce4a4
commit dea786d90a
3 changed files with 315 additions and 181 deletions

View File

@@ -22,7 +22,12 @@ mybot.on("message", function (msg) {
console.log(err);
});
mybot.reply(msg, "You know what "+msg.sender+"? NO").then(function(msg){
mybot.updateMessage(msg, "wat");
mybot.updateMessage(msg, "wat i sed nothin m8");
});
mybot.getChannelLogs(msg.channel).then(function(logs){
console.log(logs[0]);
}).catch(function(error){
console.log(error);
});
}