Haha-Yes/commands/owner/status.js

31 lines
632 B
JavaScript
Raw Normal View History

2019-01-01 03:49:33 +01:00
const { Command } = require('discord-akairo');
class StatusCommand extends Command {
2019-01-02 08:09:45 +01:00
constructor() {
super('status', {
aliases: ['status'],
category: 'owner',
ownerOnly: 'true',
args: [
{
id: 'status',
2019-11-15 21:39:53 +01:00
prompt: 'which status should i have?',
2019-05-03 11:52:13 +02:00
type: 'string',
match: 'rest'
2019-01-02 08:09:45 +01:00
}
],
description: {
2019-01-01 03:49:33 +01:00
content: 'Change the status of the bot',
usage: '[status]',
examples: ['Hello world!']
}
2019-01-02 08:09:45 +01:00
});
}
2019-01-01 03:49:33 +01:00
2019-01-02 08:09:45 +01:00
async exec(message, args) {
this.client.user.setActivity(args.status);
message.channel.send(`Status have been set to ${args.status}`);
}
2019-01-01 03:49:33 +01:00
}
module.exports = StatusCommand;