6.0-Dev Edition

This commit is contained in:
ItzEmerald committed 2020-06-15 23:58:37 +01:00
1 parent ca7294a0e3
commit eaa9da6d2e
35 files changed
+854 -1185

No files matched your search

+21 -25
View File
@@ -1,36 +1,32 @@
// SupportBot
// Created by © 2020 Emerald Services
// Command: Links
// SupportBot 6.0, Created by Emerald Services
// Links Command
const Discord = require("discord.js");
const bot = new Discord.Client();
const fs = require("fs");
const yaml = require('js-yaml');
const yaml = require('js-yaml');
const { execute } = require("./help");
const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'));
exports.run = ( bot, message, args ) => {
module.exports = {
name: supportbot.LinksCommand,
console.log(`\u001b[33m`, `[${supportbot.Bot_Name}] > `, `\u001b[31;1m`, `${message.author.tag}`, `\u001b[32;1m`, `has executed`, `\u001b[31;1m`, `${supportbot.Prefix}${supportbot.Link_Command}`);
execute(message, args) {
const LinksEmbed = new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour)
let botLinks = supportbot.LINKS;
let botLinks = supportbot.LINKS;
let links = '';
for ( let name in botLinks ) {
links += `[${name}](${botLinks[ name ]})\n`;
};
let links = '';
LinksEmbed.addField(supportbot.LinksTitle, links)
for ( let name in botLinks ) {
links += `[${name}](${botLinks[ name ]})\n`;
};
message.channel.send({ embed: LinksEmbed });
let embed = new Discord.MessageEmbed()
.setTitle(supportbot.LINKS_TITLE)
.setDescription(links)
.setColor(supportbot.EmbedColour)
.setFooter(supportbot.EmbedFooter);
message.channel.send(embed);
};
exports.help = {
name: supportbot.Link_Command,
};
}
};