mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Added username changing
This commit is contained in:
@@ -250,6 +250,20 @@ Commands[ "avatar" ] = {
|
||||
}
|
||||
}
|
||||
|
||||
Commands["setusername"] = {
|
||||
oplevel : 2,
|
||||
fn : function( bot, params, message ){
|
||||
|
||||
var name = getKey( params, "name", "Boris Johnson" );
|
||||
|
||||
bot.setUsername(name, function(err){
|
||||
if(err)
|
||||
bot.reply(message, err);
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Commands[ "icon" ] = {
|
||||
oplevel: 0,
|
||||
fn: function( bot, params, message ) {
|
||||
|
||||
@@ -31,9 +31,6 @@ hydrabot.on("debug", function(m){
|
||||
|
||||
console.time("hydrabotbenchmark");
|
||||
hydrabot.login( BotConfig.email, BotConfig.password );
|
||||
|
||||
console.log( "Starting up..." );
|
||||
|
||||
var time = Date.now();
|
||||
|
||||
// When the bot is ready to go, output to the console
|
||||
|
||||
Reference in New Issue
Block a user