2018-09-07 23:57:50 +02:00
|
|
|
const { Command } = require('discord.js-commando');
|
2018-09-08 00:22:38 +02:00
|
|
|
module.exports = class BotavatarCommand extends Command {
|
2018-09-07 23:57:50 +02:00
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
2018-09-08 00:22:38 +02:00
|
|
|
name: 'botavatar',
|
2018-09-07 23:57:50 +02:00
|
|
|
group: 'owner',
|
2018-09-08 00:22:38 +02:00
|
|
|
memberName: 'botavatar',
|
2018-09-07 23:57:50 +02:00
|
|
|
description: 'Change the avatar of the bot',
|
|
|
|
ownerOnly: true,
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
key: 'pic',
|
|
|
|
prompt: 'Wich avatar should i have?',
|
|
|
|
type: 'string',
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
run(message, { pic }) {
|
|
|
|
this.client.user.setAvatar(pic);
|
|
|
|
}
|
|
|
|
};
|