From 2872f4854708f0855f729dd5ed26aa57bc9e156b Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 1 Jan 2019 03:49:33 +0100 Subject: [PATCH] change bot status --- commands/owner/status.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 commands/owner/status.js diff --git a/commands/owner/status.js b/commands/owner/status.js new file mode 100644 index 00000000..d21a3c3b --- /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