Haha-Yes/commands/owner/status.js

31 lines
629 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'],
split: 'none',
category: 'owner',
ownerOnly: 'true',
args: [
{
id: 'status',
prompt: 'Wich status should i have?',
type: 'string'
}
],
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;