forked from Supositware/Haha-Yes
Change bot username
This commit is contained in:
parent
2872f48547
commit
d159415631
1 changed files with 31 additions and 0 deletions
31
commands/owner/username.js
Normal file
31
commands/owner/username.js
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
const { Command } = require('discord-akairo');
|
||||||
|
|
||||||
|
class usernameCommand extends Command {
|
||||||
|
constructor() {
|
||||||
|
super('username', {
|
||||||
|
aliases: ['username'],
|
||||||
|
split: 'none',
|
||||||
|
category: 'owner',
|
||||||
|
ownerOnly: 'true',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
id: 'username',
|
||||||
|
prompt: 'Wich username should i have?',
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
description: {
|
||||||
|
content: 'Change the username of the bot',
|
||||||
|
usage: '[username]',
|
||||||
|
examples: ['haha no']
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async exec(message, args) {
|
||||||
|
this.client.user.setUsername(args.username);
|
||||||
|
message.channel.send(`The username have been changed sucessfully to ${args.username}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = usernameCommand;
|
Loading…
Reference in a new issue