mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 21:14:46 +12:00
small improvements
This commit is contained in:
parent
e2dcb4e29a
commit
9422a56d4e
2 changed files with 4 additions and 4 deletions
|
@ -11,8 +11,6 @@ Commands[ "info" ] = {
|
|||
var verbose = hasFlag( params, "verbose" ) || hasFlag( params, "v" );
|
||||
var user = getUser( message, params );
|
||||
|
||||
console.log( "INFO", params );
|
||||
|
||||
bot.reply( message, [
|
||||
"here's some info on " + user.mention() + ":",
|
||||
"In channel **#" + message.channel.name + "**" + ( verbose ? " - ID *" + message.channel.id + "*" : "" ), ( message.isPM() ?
|
||||
|
@ -21,7 +19,8 @@ Commands[ "info" ] = {
|
|||
"User ID is *" + user.id + "*",
|
||||
"Authority/OP Level to me is **" + Authority.getLevel( user ) + "**"
|
||||
], function( err ) {
|
||||
console.log( err );
|
||||
if(err)
|
||||
console.log( err );
|
||||
} );
|
||||
|
||||
}
|
||||
|
|
3
index.js
3
index.js
|
@ -138,8 +138,9 @@ exports.Client.prototype.login = function( email, password ) {
|
|||
|
||||
self.connectWebsocket();
|
||||
|
||||
var time = Date.now();
|
||||
Internal.XHR.login( email, password, function( err, token ) {
|
||||
|
||||
console.log(Date.now() - time);
|
||||
if ( err ) {
|
||||
self.triggerEvent( "disconnected", [ {
|
||||
reason: "failed to log in",
|
||||
|
|
Loading…
Reference in a new issue