2019-01-01 03:49:37 +01:00
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
class usernameCommand extends Command {
|
2019-01-02 08:09:45 +01:00
|
|
|
constructor() {
|
|
|
|
super('username', {
|
|
|
|
aliases: ['username'],
|
|
|
|
category: 'owner',
|
|
|
|
ownerOnly: 'true',
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
id: 'username',
|
2019-11-15 21:39:53 +01:00
|
|
|
prompt: 'which username should i have?',
|
2019-05-03 11:52:13 +02:00
|
|
|
type: 'string',
|
|
|
|
match: 'rest'
|
2019-01-02 08:09:45 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
description: {
|
2019-01-01 03:49:37 +01:00
|
|
|
content: 'Change the username of the bot',
|
|
|
|
usage: '[username]',
|
|
|
|
examples: ['haha no']
|
|
|
|
}
|
2019-01-02 08:09:45 +01:00
|
|
|
});
|
|
|
|
}
|
2019-01-01 03:49:37 +01:00
|
|
|
|
2019-01-02 08:09:45 +01:00
|
|
|
async exec(message, args) {
|
|
|
|
this.client.user.setUsername(args.username);
|
|
|
|
message.channel.send(`The username have been changed sucessfully to ${args.username}`);
|
|
|
|
}
|
2019-01-01 03:49:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = usernameCommand;
|