Haha-Yes/commands/utility/updoot.js

34 lines
1,023 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 {
constructor() {
super('updoot', {
aliases: ['updoot', 'upvote', 'vote'],
category: 'utility',
channelRestriction: 'guild',
description: {
content: 'Send a link to vote for my bot',
usage: '',
examples: ['']
}
2018-09-09 00:44:35 +02:00
});
}
2018-12-30 01:20:24 +01:00
async exec(message) {
2018-09-09 00:44:35 +02:00
const upDoot = {
color: 0x93C54B,
title: 'Vote for my bot',
url: 'https://discordbots.org/bot/377563711927484418/vote',
description: 'You can vote for my bot if you think the bot is awesome!',
timestamp: new Date(),
footer: {
text: 'Thanks for the updoots',
icon_url: 'https://cdn.discordapp.com/avatars/377563711927484418/1335d202aa466dbeaa4ed2e4b616484a.png?size=2048',
},
};
message.channel.send({ embed: upDoot });
}
2018-12-30 01:20:24 +01:00
}
module.exports = UpdootCommand;