2018-09-07 23:57:50 +02:00
|
|
|
const { Command } = require('discord.js-commando');
|
|
|
|
module.exports = class StatusCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
|
|
name: 'status',
|
|
|
|
group: 'owner',
|
|
|
|
memberName: 'status',
|
|
|
|
description: 'Change the status of the bot',
|
|
|
|
ownerOnly: true,
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
key: 'status',
|
|
|
|
prompt: 'Wich status should i have?',
|
|
|
|
type: 'string',
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-09-09 21:32:08 +02:00
|
|
|
async run(message, { status }) {
|
2018-09-07 23:57:50 +02:00
|
|
|
this.client.user.setActivity(status);
|
2018-09-09 21:32:08 +02:00
|
|
|
message.say(`Status have been set to ${status}`);
|
2018-09-07 23:57:50 +02:00
|
|
|
}
|
|
|
|
};
|