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/utility/updoot.js

33 lines
993 B
JavaScript

const { Command } = require('discord-akairo');
5 years ago
class UpdootCommand extends Command {
5 years ago
constructor() {
super('updoot', {
aliases: ['updoot', 'upvote', 'vote'],
category: 'utility',
channel: 'guild',
5 years ago
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
5 years ago
description: {
content: 'Send a link to vote for my bot',
usage: '',
examples: ['']
}
5 years ago
});
}
5 years ago
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!')
5 years ago
.addField('Discordbot.org', 'https://discordbots.org/bot/377563711927484418/vote')
.addField('Discordbotlist.com', 'https://discordbotlist.com/bots/377563711927484418/upvote')
.setTimestamp()
5 years ago
.setFooter('Thanks for the updoots', this.client.user.avatarURL);
5 years ago
message.channel.send({ embed: upDoot });
}
}
module.exports = UpdootCommand;