added parameter for optional stopTypeTime in startTyping

This commit is contained in:
hydrabolt
2015-09-27 18:03:43 +01:00
parent c32f600a6a
commit a70d6f9b32
3 changed files with 15 additions and 8 deletions

View File

@@ -19,12 +19,7 @@ mybot.on("message", function (message) {
var onlineUsers = 0;
mybot.startTyping(message.channel);
setTimeout(function(){
mybot.reply(message, "stopping now k");
mybot.stopTyping(message.channel);
}, 6000);
mybot.startTyping(message.channel, 6000);
});