Haha-Yes/commands/utility/updoot.js

34 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-09-09 00:44:35 +02:00
const { Command } = require('discord.js-commando');
2018-11-28 01:35:26 +01:00
const SelfReloadJSON = require('self-reload-json');
2018-12-05 00:52:21 +01:00
2018-09-09 00:44:35 +02:00
module.exports = class UpDootCommand extends Command {
constructor(client) {
super(client, {
name: 'updoot',
2018-09-09 00:44:52 +02:00
aliases: ['vote'],
2018-09-17 17:02:39 +02:00
group: 'utility',
2018-09-09 00:44:35 +02:00
memberName: 'updoot',
description: 'Send link to updoot my bot :D.',
});
}
2018-09-09 21:32:08 +02:00
async run(message) {
2018-12-05 00:57:44 +01:00
let blacklistJson = new SelfReloadJSON('DiscordBot/json/blacklist.json');
2018-11-28 01:35:26 +01:00
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , 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 });
}
};