diff --git a/commands/owner/status.js b/commands/owner/status.js new file mode 100644 index 0000000..d21a3c3 --- /dev/null +++ b/commands/owner/status.js @@ -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; \ No newline at end of file