SupportBot 6.0 BETA 1

This commit is contained in:
ItzEmerald committed 2020-07-15 18:42:07 +01:00
1 parent cc5a6b7317
commit 4f05ad6546
9 files changed
+43 -48

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ module.exports = {
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${supportbot.Staff}\` or \`${supportbot.Admin}\``)
.setColor(supportbot.WarningColour)
if (!message.member.roles.cache.has(SupportStaff.id || Admins.id)) {
if (message.member.roles.cache.has(SupportStaff.id) || message.member.roles.cache.has(Admins.id)) {
if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) {
const Exists = new Discord.MessageEmbed()
.setTitle("No Ticket Found!")
@@ -61,4 +61,4 @@ module.exports = {
}
}
};
};
-33
View File
@@ -1,33 +0,0 @@
// SupportBot 6.0, Created by Emerald Services
// Links Command
const Discord = require("discord.js");
const fs = require("fs");
const yaml = require('js-yaml');
const { execute } = require("./help");
const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'));
module.exports = {
name: supportbot.LinksCommand,
description: supportbot.LinksDesc,
execute(message, args) {
const LinksEmbed = new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour)
let botLinks = supportbot.HELP;
let links = '';
for ( let name in botLinks ) {
links += `[${name}](${botLinks[ name ]})\n`;
};
LinksEmbed.addField(supportbot.HelpTitle, links)
message.channel.send({ embed: LinksEmbed });
}
};
+2 -2
View File
@@ -22,7 +22,7 @@ module.exports = {
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${supportbot.Staff}\` or \`${supportbot.Admin}\``)
.setColor(supportbot.WarningColour)
if (!message.member.roles.cache.has(SupportStaff.id || Admins.id)) {
if (message.member.roles.cache.has(SupportStaff.id) || message.member.roles.cache.has(Admins.id)) {
if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) {
const Exists = new Discord.MessageEmbed()
.setTitle("No Ticket Found!")
@@ -59,4 +59,4 @@ module.exports = {
}
}
};
};