From 64816b2f0dd09cd4e8962aa0f2d87dc1d10cf999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sun, 9 Sep 2018 00:44:35 +0200 Subject: [PATCH] Vote for the bot ! --- commands/thing/updoot.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 commands/thing/updoot.js diff --git a/commands/thing/updoot.js b/commands/thing/updoot.js new file mode 100644 index 00000000..13162836 --- /dev/null +++ b/commands/thing/updoot.js @@ -0,0 +1,28 @@ +const { Command } = require('discord.js-commando'); +module.exports = class UpDootCommand extends Command { + constructor(client) { + super(client, { + name: 'updoot', + aliases: 'vote', + group: 'thing', + memberName: 'updoot', + description: 'Send link to updoot my bot :D.', + }); + } + + run(message) { + 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 }); + } +}; \ No newline at end of file