33 lines
No EOL
1,004 B
JavaScript
33 lines
No EOL
1,004 B
JavaScript
const { Command } = require('discord-akairo');
|
|
|
|
class UpdootCommand extends Command {
|
|
constructor() {
|
|
super('updoot', {
|
|
aliases: ['updoot', 'upvote', 'vote'],
|
|
category: 'utility',
|
|
channelRestriction: 'guild',
|
|
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
|
|
description: {
|
|
content: 'Send a link to vote for my bot',
|
|
usage: '',
|
|
examples: ['']
|
|
}
|
|
});
|
|
}
|
|
|
|
async exec(message) {
|
|
const upDoot = this.client.util.embed()
|
|
.setColor(message.member.displayHexColor)
|
|
.setTitle('Vote for my bot')
|
|
.setAuthor(message.author.username)
|
|
.setDescription('You can vote for my bot if you think the bot is awesome!')
|
|
.addField('Discordbot.org', 'https://discordbots.org/bot/377563711927484418/vote')
|
|
.addField('Discordbotlist.com', 'https://discordbotlist.com/bots/377563711927484418/upvote')
|
|
.setTimestamp()
|
|
.setFooter('Thanks for the updoots', this.client.user.avatarURL);
|
|
|
|
message.channel.send({ embed: upDoot });
|
|
}
|
|
}
|
|
|
|
module.exports = UpdootCommand; |