diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ff42336..15d7058 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,13 +19,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm install discord.js --save - - run: npm install js-yaml - - run: npm run build --if-present - - run: node index.js + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm install discord.js --save + - run: npm install js-yaml + - run: npm run build --if-present + - run: node index.js diff --git a/Data/TicketData.json b/Data/TicketData.json index 9e26dfe..0967ef4 100644 --- a/Data/TicketData.json +++ b/Data/TicketData.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/Data/commands.yml b/Data/commands.yml index 2c266f9..90c0ace 100644 --- a/Data/commands.yml +++ b/Data/commands.yml @@ -1,8 +1,8 @@ -# ___ _ ___ _ -# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ -# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | -# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| -# |_| |_| +# ___ _ ___ _ +# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ +# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | +# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| +# |_| |_| # # SupportBot created by Emerald Services # Installed with MIT License @@ -33,5 +33,3 @@ CloseTicketDesc: "Close your support ticket." InfoCommandDesc: "Get information about the brand." PingCommandDesc: "Pong!" HelpCommandDesc: "Get a list of all the commands." - - diff --git a/Data/supportbot.yml b/Data/supportbot.yml index be0ab3e..e9b29fb 100644 --- a/Data/supportbot.yml +++ b/Data/supportbot.yml @@ -1,8 +1,8 @@ -# ___ _ ___ _ -# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ -# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | -# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| -# |_| |_| +# ___ _ ___ _ +# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ +# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | +# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| +# |_| |_| # # SupportBot created by Emerald Services # Installed with MIT License @@ -41,7 +41,7 @@ EmbedFooter: "SupportBot | An Advanced Ticket System" ErrorColour: "#d12519" SuccessColour: "#04b545" -WarningColour: "#fca117" +WarningColour: "#fca117" # ------------------------- # Information Configuration @@ -115,7 +115,6 @@ TicketCreatedAlert: ":ticket: Your support ticket has been created: <#%ticketid% AddedUser: "👍 <@%user%> has been added to this ticket" RemovedUser: "👍 <@%user%> has been removed from this ticket" - # --- Buttons Config --- # --- Start --- @@ -156,7 +155,7 @@ TicketDeleteTime: 5000 # Time must be set in miliseconds. TicketDepartments: true AllowStaff: true -# If set to false users with the "Staff" role will not be able to view tickets +# If set to false users with the "Staff" role will not be able to view tickets # without a valid department role set below. # Set to false to allow "Staff" to see tickets whether its a department for them or not. @@ -169,7 +168,7 @@ DepartmentTitle_3: "Admin Team" DepartmentRole_1: "Support Team" DepartmentRole_2: "Support Team" DepartmentRole_3: "Project Developer" -# Ticket roles are the roles that will be able to gain access to tickets depending on what department has been choosen. +# Ticket roles are the roles that will be able to gain access to tickets depending on what department has been choosen. # --- Closing Config --- # --- Start --- diff --git a/Data/ticket-panel-id.yml b/Data/ticket-panel-id.yml index a21d6b7..4ee9e1e 100644 --- a/Data/ticket-panel-id.yml +++ b/Data/ticket-panel-id.yml @@ -1 +1 @@ -TicketPanelID: '896035054235574362' +TicketPanelID: "896035054235574362" diff --git a/Data/ticket-panel.yml b/Data/ticket-panel.yml index 2e951a6..baeca8d 100644 --- a/Data/ticket-panel.yml +++ b/Data/ticket-panel.yml @@ -1,8 +1,8 @@ -# ___ _ ___ _ -# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ -# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | -# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| -# |_| |_| +# ___ _ ___ _ +# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ +# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | +# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| +# |_| |_| # # SupportBot created by Emerald Services # Installed with MIT License @@ -23,7 +23,7 @@ TicketPanel: true Channel: "create-ticket" ButtonEmoji: "📩" ButtonLabel: "Open Ticket" -ButtonColour: "SUCCESS" +ButtonColour: "SUCCESS" # Colour Options: # -> PRIMARY - Blurple # -> SECONDARY - Grey @@ -39,4 +39,3 @@ TicketPanel_Image: false PanelMessage: "Click the button to open a new support ticket." PanelThumbnail: "https://i.imgur.com/ieeZejl.png" PanelImage: "https://i.imgur.com/5NkcmDq.png" - diff --git a/Events/messageReactionAdd.js b/Events/messageReactionAdd.js index a1b3129..22d20d6 100644 --- a/Events/messageReactionAdd.js +++ b/Events/messageReactionAdd.js @@ -4,37 +4,40 @@ const fs = require("fs"); const Discord = require("discord.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); -const cmdconfig = yaml.load(fs.readFileSync('./Data/commands.yml', 'utf8')); -const panelconfig = yaml.load(fs.readFileSync('./Data/ticket-panel.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); +const cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const panelconfig = yaml.load( + fs.readFileSync("./Data/ticket-panel.yml", "utf8") +); const Event = require("../Structures/Event.js"); module.exports = new Event("messageReactionAdd", async (client) => { + let message = { + guild: reaction.message.channel.guild, + author: user, + content: "N/A", + channel: reaction.message.channel, + }; - let message = { - guild: reaction.message.channel.guild, - author: user, - content: "N/A", - channel: reaction.message.channel - } + if (panelconfig.TicketPanel) { + if (reaction.message.id === panelconfig.TicketPanelID) { + if ( + reaction.emoji.name == panelconfig.ButtonEmoji || + reaction.emoji.id == panelconfig.ButtonEmoji + ) { + await reaction.users.remove(user.id); - if (panelconfig.TicketPanel) { - if (reaction.message.id === panelconfig.TicketPanelID) { - if (reaction.emoji.name == panelconfig.ButtonEmoji || reaction.emoji.id == panelconfig.ButtonEmoji) { - await reaction.users.remove(user.id) + try { + const cmd = client.commands.get(cmdconfig.OpenTicket); + if (!cmd) return; - try { - const cmd = client.commands.get(cmdconfig.OpenTicket); - if(!cmd) return; - - cmd.run(message, message.content); - } catch (error) { - console.error(error); - } - } + cmd.run(message, message.content); + } catch (error) { + console.error(error); } + } } - -}); \ No newline at end of file + } +}); diff --git a/Structures/Event.js b/Structures/Event.js index 6766b3b..8f81bf1 100644 --- a/Structures/Event.js +++ b/Structures/Event.js @@ -5,17 +5,16 @@ const fs = require("fs"); const Discord = require("discord.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); function RunFunction(client, ...eventArgs) {} class Event { - - constructor(event, runFunction) { - this.event = event; - this.run = runFunction; - } + constructor(event, runFunction) { + this.event = event; + this.run = runFunction; + } } -module.exports = Event; \ No newline at end of file +module.exports = Event; diff --git a/Structures/TicketID.js b/Structures/TicketID.js index 5dc4240..e0f0d80 100644 --- a/Structures/TicketID.js +++ b/Structures/TicketID.js @@ -8,69 +8,83 @@ const Command = require("./Command.js"); const Client = require("./Client.js"); const Event = require("./Event.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); class TicketNumberID { - - static pad(guildId) { - let n = this.get(guildId) + ''; - let z = '0'; - let width = 4; - setTimeout(() => { - this.set(guildId, this.get(guildId) + 1); - }, 50); - return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; -} + static pad(guildId) { + let n = this.get(guildId) + ""; + let z = "0"; + let width = 4; + setTimeout(() => { + this.set(guildId, this.get(guildId) + 1); + }, 50); + return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; + } -static get(guildId) { - - let ticketnumberID = JSON.parse(fs.readFileSync("./Data/TicketData.json", "utf8")); + static get(guildId) { + let ticketnumberID = JSON.parse( + fs.readFileSync("./Data/TicketData.json", "utf8") + ); if (!ticketnumberID[guildId]) { - ticketnumberID[guildId] = { - id: 0 + ticketnumberID[guildId] = { + id: 0, + }; + + fs.writeFileSync( + "./Data/TicketData.json", + JSON.stringify(ticketnumberID, null, 4), + (err) => { + if (err) console.log(err); } + ); - fs.writeFileSync("./Data/TicketData.json", JSON.stringify(ticketnumberID, null, 4), err => { - if (err) console.log(err); - }); - - return 0; - - + return 0; } else { - return ticketnumberID[guildId].id; + return ticketnumberID[guildId].id; } -} + } + + static set(guildId, value) { + let ticketnumberID = JSON.parse( + fs.readFileSync("./Data/TicketData.json", "utf8") + ); -static set(guildId, value) { - let ticketnumberID = JSON.parse(fs.readFileSync("./Data/TicketData.json", "utf8")); - ticketnumberID[guildId] = { - id: value - } + id: value, + }; - fs.writeFileSync("./Data/TicketData.json", JSON.stringify(ticketnumberID, null, 4), err => { + fs.writeFileSync( + "./Data/TicketData.json", + JSON.stringify(ticketnumberID, null, 4), + (err) => { if (err) console.log(err); - }); + } + ); return value; -} + } + + static reset(guildId) { + let ticketnumberID = JSON.parse( + fs.readFileSync("./Data/TicketData.json", "utf8") + ); -static reset(guildId) { - let ticketnumberID = JSON.parse(fs.readFileSync("./Data/TicketData.json", "utf8")); - ticketnumberID[guildId] = { - id: 0 - } + id: 0, + }; - fs.writeFileSync("./Data/TicketData.json", JSON.stringify(ticketnumberID, null, 4), err => { + fs.writeFileSync( + "./Data/TicketData.json", + JSON.stringify(ticketnumberID, null, 4), + (err) => { if (err) console.log(err); - }); + } + ); return 0; -} + } } -module.exports = TicketNumberID; \ No newline at end of file +module.exports = TicketNumberID; diff --git a/events/messageReactionAdd.js b/events/messageReactionAdd.js index 2f16489..22d20d6 100644 --- a/events/messageReactionAdd.js +++ b/events/messageReactionAdd.js @@ -4,37 +4,40 @@ const fs = require("fs"); const Discord = require("discord.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); -const cmdconfig = yaml.load(fs.readFileSync('./Data/commands.yml', 'utf8')); -const panelconfig = yaml.load(fs.readFileSync('./Data/ticket-panel.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); +const cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const panelconfig = yaml.load( + fs.readFileSync("./Data/ticket-panel.yml", "utf8") +); const Event = require("../Structures/Event.js"); module.exports = new Event("messageReactionAdd", async (client) => { + let message = { + guild: reaction.message.channel.guild, + author: user, + content: "N/A", + channel: reaction.message.channel, + }; - let message = { - guild: reaction.message.channel.guild, - author: user, - content: "N/A", - channel: reaction.message.channel - } + if (panelconfig.TicketPanel) { + if (reaction.message.id === panelconfig.TicketPanelID) { + if ( + reaction.emoji.name == panelconfig.ButtonEmoji || + reaction.emoji.id == panelconfig.ButtonEmoji + ) { + await reaction.users.remove(user.id); - if (panelconfig.TicketPanel) { - if (reaction.message.id === panelconfig.TicketPanelID) { - if (reaction.emoji.name == panelconfig.ButtonEmoji || reaction.emoji.id == panelconfig.ButtonEmoji) { - await reaction.users.remove(user.id) + try { + const cmd = client.commands.get(cmdconfig.OpenTicket); + if (!cmd) return; - try { - const cmd = client.commands.get(cmdconfig.OpenTicket); - if(!cmd) return; - - cmd.run(message, message.content); - } catch (error) { - console.error(error); - } - } + cmd.run(message, message.content); + } catch (error) { + console.error(error); } + } } - + } }); diff --git a/events/ready.js b/events/ready.js index d5af8f0..872e412 100644 --- a/events/ready.js +++ b/events/ready.js @@ -4,90 +4,123 @@ const fs = require("fs"); const Discord = require("discord.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); -const panelconfig = yaml.load(fs.readFileSync('./Data/ticket-panel.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); +const panelconfig = yaml.load( + fs.readFileSync("./Data/ticket-panel.yml", "utf8") +); const Event = require("../Structures/Event.js"); -module.exports = new Event("ready", client => { - client.user.setActivity(supportbot.BotActivity, { - type: supportbot.ActivityType, - url: supportbot.StreamingURL - }); +module.exports = new Event("ready", (client) => { + client.user.setActivity(supportbot.BotActivity, { + type: supportbot.ActivityType, + url: supportbot.StreamingURL, + }); - console.log(`\u001b[32m`, `┏━━━┓╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓┏━━┓╋╋╋┏┓`) - console.log(`\u001b[32m`, `┃┏━┓┃╋╋╋╋╋╋╋╋╋╋╋╋┏┛┗┫┏┓┃╋╋┏┛┗┓`) - console.log(`\u001b[32m`, `┃┗━━┳┓┏┳━━┳━━┳━━┳┻┓┏┫┗┛┗┳━┻┓┏┛`) - console.log(`\u001b[32m`, `┗━━┓┃┃┃┃┏┓┃┏┓┃┏┓┃┏┫┃┃┏━┓┃┏┓┃┃`) - console.log(`\u001b[32m`, `┃┗━┛┃┗┛┃┗┛┃┗┛┃┗┛┃┃┃┗┫┗━┛┃┗┛┃┗┓`) - console.log(`\u001b[32m`, `┗━━━┻━━┫┏━┫┏━┻━━┻┛┗━┻━━━┻━━┻━┛`) - console.log(`\u001b[32m`, `┗╋╋╋╋╋╋╋┃┃╋┃┃`) - console.log(`\u001b[32m`, `╋╋╋╋╋╋╋┗┛╋┗┛`) - console.log(` `) - console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`) - console.log(` `) - console.log(`\u001b[33m`, `${supportbot.Name} v${supportbot.SupportBot_Version}`, `\u001b[36m`, `Connected to Discord`) - console.log(`\u001b[33m`, `Resources:`, `\u001b[36m`, `https://emeraldsrv.dev/resources`) - console.log(`\u001b[33m`, `Documentation:`, `\u001b[36m`, `https://supportbot.emeraldsrv.dev`) - console.log(`\u001b[33m`, `Discord:`, `\u001b[36m`, `https://emeraldsrv.dev/discord`) - console.log(`\u001b[33m`, `Hosting:`, `\u001b[36m`, `https://emeraldsrv.dev/hosting`) - console.log(` `) - console.log(`\u001b[37m`, `SupportBot proudly created by Emerald Services`) - console.log(` `) - console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`) + console.log(`\u001b[32m`, `┏━━━┓╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓┏━━┓╋╋╋┏┓`); + console.log(`\u001b[32m`, `┃┏━┓┃╋╋╋╋╋╋╋╋╋╋╋╋┏┛┗┫┏┓┃╋╋┏┛┗┓`); + console.log(`\u001b[32m`, `┃┗━━┳┓┏┳━━┳━━┳━━┳┻┓┏┫┗┛┗┳━┻┓┏┛`); + console.log(`\u001b[32m`, `┗━━┓┃┃┃┃┏┓┃┏┓┃┏┓┃┏┫┃┃┏━┓┃┏┓┃┃`); + console.log(`\u001b[32m`, `┃┗━┛┃┗┛┃┗┛┃┗┛┃┗┛┃┃┃┗┫┗━┛┃┗┛┃┗┓`); + console.log(`\u001b[32m`, `┗━━━┻━━┫┏━┫┏━┻━━┻┛┗━┻━━━┻━━┻━┛`); + console.log(`\u001b[32m`, `┗╋╋╋╋╋╋╋┃┃╋┃┃`); + console.log(`\u001b[32m`, `╋╋╋╋╋╋╋┗┛╋┗┛`); + console.log(` `); + console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`); + console.log(` `); + console.log( + `\u001b[33m`, + `${supportbot.Name} v${supportbot.SupportBot_Version}`, + `\u001b[36m`, + `Connected to Discord` + ); + console.log( + `\u001b[33m`, + `Resources:`, + `\u001b[36m`, + `https://emeraldsrv.dev/resources` + ); + console.log( + `\u001b[33m`, + `Documentation:`, + `\u001b[36m`, + `https://supportbot.emeraldsrv.dev` + ); + console.log( + `\u001b[33m`, + `Discord:`, + `\u001b[36m`, + `https://emeraldsrv.dev/discord` + ); + console.log( + `\u001b[33m`, + `Hosting:`, + `\u001b[36m`, + `https://emeraldsrv.dev/hosting` + ); + console.log(` `); + console.log(`\u001b[37m`, `SupportBot proudly created by Emerald Services`); + console.log(` `); + console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`); - if (panelconfig.TicketPanel) { - let chan1 = client.channels.cache.find(channel => channel.name === panelconfig.Channel) + if (panelconfig.TicketPanel) { + let chan1 = client.channels.cache.find( + (channel) => channel.name === panelconfig.Channel + ); - if (!chan1) { - console.log('\u001b[33m', "[WARN] Ticket reaction panel is not setup, You can do so via the configuration file!") - return false; - } - - const panelid = yaml.load(fs.readFileSync('./Data/ticket-panel-id.yml', 'utf8')); - - chan1.messages.fetch(panelid.TicketPanelID).catch(async r => { - let embed = new Discord.MessageEmbed() - .setTitle(`${panelconfig.PanelTitle}`) - .setColor(supportbot.SuccessColour) - .setFooter(supportbot.EmbedFooter); - - if (panelconfig.TicketPanel_Description) { - embed.setDescription(panelconfig.PanelMessage) - } - - if (panelconfig.TicketPanel_Thumbnail) { - embed.setThumbnail(panelconfig.PanelThumbnail) - } - - if (panelconfig.TicketPanel_Image) { - embed.setImage(panelconfig.PanelImage) - } - - let button = new Discord.MessageButton() - .setLabel(panelconfig.ButtonLabel) - .setCustomId('openticket') - .setStyle(panelconfig.ButtonColour) - - let row = new Discord.MessageActionRow() - .addComponents(button) - - - await chan1.send({ - embeds: [embed], - components: [row] - }).then(r => { - let data = { - "TicketPanelID": `${r.id}` - } - let yamlStr = yaml.dump(data); - fs.writeFileSync('./Data/ticket-panel-id.yml', yamlStr, 'utf8'); - - }).catch(e => { - console.log("Raw"+e) - }) - }) + if (!chan1) { + console.log( + "\u001b[33m", + "[WARN] Ticket reaction panel is not setup, You can do so via the configuration file!" + ); + return false; } -}); \ No newline at end of file + const panelid = yaml.load( + fs.readFileSync("./Data/ticket-panel-id.yml", "utf8") + ); + + chan1.messages.fetch(panelid.TicketPanelID).catch(async (r) => { + let embed = new Discord.MessageEmbed() + .setTitle(`${panelconfig.PanelTitle}`) + .setColor(supportbot.SuccessColour) + .setFooter(supportbot.EmbedFooter); + + if (panelconfig.TicketPanel_Description) { + embed.setDescription(panelconfig.PanelMessage); + } + + if (panelconfig.TicketPanel_Thumbnail) { + embed.setThumbnail(panelconfig.PanelThumbnail); + } + + if (panelconfig.TicketPanel_Image) { + embed.setImage(panelconfig.PanelImage); + } + + let button = new Discord.MessageButton() + .setLabel(panelconfig.ButtonLabel) + .setCustomId("openticket") + .setStyle(panelconfig.ButtonColour); + + let row = new Discord.MessageActionRow().addComponents(button); + + await chan1 + .send({ + embeds: [embed], + components: [row], + }) + .then((r) => { + let data = { + TicketPanelID: `${r.id}`, + }; + let yamlStr = yaml.dump(data); + fs.writeFileSync("./Data/ticket-panel-id.yml", yamlStr, "utf8"); + }) + .catch((e) => { + console.log("Raw" + e); + }); + }); + } +}); diff --git a/index.js b/index.js index 7fc4f16..ed48bb2 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,8 @@ -// ___ _ ___ _ -// / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ -// \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | -// <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| -// |_| |_| +// ___ _ ___ _ +// / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ +// \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | +// <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| +// |_| |_| // // SupportBot created by Emerald Services // Installed with MIT License @@ -13,12 +13,10 @@ const fs = require("fs"); const Discord = require("discord.js"); -const yaml = require('js-yaml'); -const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8')); +const yaml = require("js-yaml"); +const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); const Client = require("./Structures/Client.js"); const client = new Client({}); client.start(supportbot.Token); - -