change bot status
This commit is contained in:
parent
4f1c830e06
commit
2872f48547
1 changed files with 31 additions and 0 deletions
31
commands/owner/status.js
Normal file
31
commands/owner/status.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
const { Command } = require('discord-akairo');
|
||||
|
||||
class StatusCommand extends Command {
|
||||
constructor() {
|
||||
super('status', {
|
||||
aliases: ['status'],
|
||||
split: 'none',
|
||||
category: 'owner',
|
||||
ownerOnly: 'true',
|
||||
args: [
|
||||
{
|
||||
id: 'status',
|
||||
prompt: 'Wich status should i have?',
|
||||
type: 'string'
|
||||
}
|
||||
],
|
||||
description: {
|
||||
content: 'Change the status of the bot',
|
||||
usage: '[status]',
|
||||
examples: ['Hello world!']
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async exec(message, args) {
|
||||
this.client.user.setActivity(args.status);
|
||||
message.channel.send(`Status have been set to ${args.status}`);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = StatusCommand;
|
Loading…
Reference in a new issue