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',
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-09-09 21:32:08 +02:00
|
|
|
async run(message, { pic }) {
|
2018-09-07 23:57:50 +02:00
|
|
|
this.client.user.setAvatar(pic);
|
2018-09-09 21:32:08 +02:00
|
|
|
message.say('The avatar have been changed succesfully');
|
2018-09-07 23:57:50 +02:00
|
|
|
}
|
|
|
|
};
|