minor bug fix

This commit is contained in:
hydrabolt
2015-08-11 22:30:37 +01:00
parent 07db06f1c1
commit 8de8b6d20e
2 changed files with 4 additions and 0 deletions

View File

@@ -41,4 +41,5 @@ myBot.login("discord email", "discord password", function(e) {
```
### TODO
* Documentation
* Better error handling
* Being able to cache new servers and channels as well as ones that are deleted - this is currently only done when a bot is created

View File

@@ -161,6 +161,9 @@ exports.Client.prototype.connectWebsocket = function(cb) {
}
this.websocket.keepAlive = function() {
if(this.readyState !== 1)
return false;
this.sendPacket({
op: 1,
d: Date.now()