small fixes and additions to examples, added deepFilter to list

This commit is contained in:
hydrabolt
2015-08-12 16:35:17 +01:00
parent 0013891764
commit 3e4f0fb74c
6 changed files with 96 additions and 43 deletions

View File

@@ -4,7 +4,7 @@
* starts up or shuts down, respectively.
*/
var Discord = require( "discord.js" );
var Discord = require( "../" );
var myBot = new Discord.Client();
myBot.login( "hello@example.com", "password1" );
@@ -19,6 +19,6 @@ myBot.on( "ready", function() {
// ended.
// It is also triggered when the connection attempt fails, for example due
// to a wrong password.
myBot.on( "disconnected", function() {
console.log( "Bot disconnected from Discord." );
myBot.on( "disconnected", function(e) {
console.log( "Bot disconnected from Discord -", e.reason );
} );