Haha-Yes/commands/utility/updoot.js
supositware dfd25c8bf2 Bunch of update
mostly replacing message.channel.send with message.reply
( i hope it work this time... )
2021-07-23 04:19:47 +02:00

33 lines
No EOL
1,008 B
JavaScript

const { Command } = require('discord-akairo');
class UpdootCommand extends Command {
constructor() {
super('updoot', {
aliases: ['updoot', 'upvote', 'vote'],
category: 'utility',
channel: '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 ? message.member.displayHexColor : 'NAVY')
.setTitle('Vote for my bot')
.setAuthor(message.author.username)
.setDescription('You can vote for my bot if you think it is awesome!')
.addField('top.gg (Previously Discordbot.org)', 'https://top.gg/bot/377563711927484418/vote')
.addField('Discordbotlist.com', 'https://discordbotlist.com/bots/haha-yes/upvote')
.setTimestamp()
.setFooter('Thanks for the updoots', this.client.user.avatarURL);
message.reply({ embed: upDoot });
}
}
module.exports = UpdootCommand;