Haha-Yes/commands/utility/updoot.js
2019-11-09 12:04:01 +01:00

34 lines
No EOL
1 KiB
JavaScript

const { Command } = require('discord-akairo');
const { MessageEmbed } = require('discord.js');
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 = new MessageEmbed()
.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;