You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/owner/status.js

31 lines
629 B
JavaScript

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;