Haha-Yes/commands/utility/updoot.js

33 lines
1,008 B
JavaScript
Raw Normal View History

2018-12-30 01:20:24 +01:00
const { Command } = require('discord-akairo');
2018-12-25 19:17:07 +01:00
2018-12-30 01:20:24 +01:00
class UpdootCommand extends Command {
2019-01-02 08:09:45 +01:00
constructor() {
super('updoot', {
aliases: ['updoot', 'upvote', 'vote'],
category: 'utility',
2020-03-19 23:24:31 +01:00
channel: 'guild',
2019-11-09 12:04:01 +01:00
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
2019-01-02 08:09:45 +01:00
description: {
2018-12-30 01:20:24 +01:00
content: 'Send a link to vote for my bot',
usage: '',
examples: ['']
}
2019-01-02 08:09:45 +01:00
});
}
2018-09-09 00:44:35 +02:00
2019-01-02 08:09:45 +01:00
async exec(message) {
2019-11-22 12:30:20 +01:00
const upDoot = this.client.util.embed()
2020-03-22 21:54:19 +01:00
.setColor(message.member ? message.member.displayHexColor : 'NAVY')
.setTitle('Vote for my bot')
.setAuthor(message.author.username)
2020-07-16 09:25:20 +02:00
.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()
2019-02-08 18:46:08 +01:00
.setFooter('Thanks for the updoots', this.client.user.avatarURL);
2019-01-02 08:09:45 +01:00
message.reply({ embed: upDoot });
2019-01-02 08:09:45 +01:00
}
2018-12-30 01:20:24 +01:00
}
module.exports = UpdootCommand;