Updated bot and added some more helpful features, such as isPM to messages to discover whether a message is from a PM

This commit is contained in:
hydrabolt
2015-08-14 17:43:51 +01:00
parent 8a41ffe356
commit d5e4e7ba8b
4 changed files with 188 additions and 12 deletions

View File

@@ -120,6 +120,10 @@ exports.Client.prototype.login = function( email, password ) {
exports.Client.prototype.reply = function(){
if(arguments[1] instanceof Array){
arguments[1] = arguments[1].join("\n");
}
arguments[1] = arguments[0].author.mention() + ", " + arguments[1];
this.sendMessage.apply(this, arguments);