Update 'links' command and it's settings

This commit is contained in:
RedsoneGamez committed 2019-06-18 13:09:00 -03:00
1 parent 45194b82da
commit 599649a97f
3 files changed
+123 -142

No files matched your search

+18 -14
View File
@@ -1,27 +1,31 @@
// SupportBot
// Command: Help
const Discord = require("discord.js");
const Discord = require( "discord.js" );
const bot = new Discord.Client()
bot.settings = require("../settings.json");
bot.settings = require( "../settings.json" );
exports.run = (bot, message, args) => {
exports.run = ( bot, message, args ) => {
message.delete();
let BotLinks = "";
BotLinks += `[${bot.settings.LINK_1_NAME}](${bot.settings.LINK_1})\n`;
BotLinks += `[${bot.settings.LINK_2_NAME}](${bot.settings.LINK_2})\n`;
BotLinks += `[${bot.settings.LINK_3_NAME}](${bot.settings.LINK_3})\n`;
let botLinks = bot.settings.LINKS;
const links = new Discord.RichEmbed()
.setTitle(`${bot.settings.LINKS_TITLE}`)
.setDescription(BotLinks)
.setColor(bot.settings.colour)
.setFooter(bot.settings.footer)
message.channel.send(links)
let links = '';
console.log(`\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}`)
for ( let name in botLinks ) {
links += `[${name}](${botLinks[ name ]})\n`;
}
let embed = new Discord.RichEmbed()
.setTitle( bot.settings.LINKS_TITLE )
.setDescription( links )
.setColor( bot.settings.colour )
.setFooter( bot.settings.footer )
message.channel.send( embed );
console.log( `\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}` )
}