From 4cd3ecf81f8fee09f1e091883c709a02e317a04a Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Fri, 29 Oct 2021 19:12:11 +0100 Subject: [PATCH 01/10] 7.3 --- .DS_Store | Bin 0 -> 10244 bytes Commands/{TicketAdd.js => add.js} | 10 ++-- Commands/{closeticket.js => close.js} | 10 ++-- Commands/embed.js | 38 ++++++------- Commands/help.js | 6 ++- Commands/info.js | 6 ++- Commands/ping.js | 6 ++- Commands/{TicketRemove.js => remove.js} | 10 ++-- Commands/suggest.js | 68 ++++++++++++++++++++++++ Commands/ticket.js | 15 +++--- {Data => Configs}/commands.yml | 8 +-- {Data => Configs}/supportbot.yml | 30 ++++++----- {Data => Configs}/ticket-panel.yml | 4 +- Data/.DS_Store | Bin 0 -> 6148 bytes Data/TicketData.json | 6 ++- Events/interactionCreate.js | 11 ++-- Events/messageReactionAdd.js | 43 --------------- Events/ready.js | 17 +++--- README.md | 13 +++++ Structures/Addons.js | 4 +- Structures/Client.js | 66 ++++++++++++++++------- Structures/Command.js | 4 +- Structures/Event.js | 4 +- Structures/TicketID.js | 4 +- index.js | 4 +- package-lock.json | 4 +- package.json | 8 +-- 27 files changed, 249 insertions(+), 150 deletions(-) create mode 100644 .DS_Store rename Commands/{TicketAdd.js => add.js} (92%) rename Commands/{closeticket.js => close.js} (94%) rename Commands/{TicketRemove.js => remove.js} (92%) create mode 100644 Commands/suggest.js rename {Data => Configs}/commands.yml (84%) rename {Data => Configs}/supportbot.yml (89%) rename {Data => Configs}/ticket-panel.yml (89%) create mode 100644 Data/.DS_Store delete mode 100644 Events/messageReactionAdd.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1f0cfc97ed818a1c306f8c510a1336bb6f95bdd7 GIT binary patch literal 10244 zcmeHMO>7%Q6n>M0#%@x&X_F8NhZT_!sA+ymB2l5Lj+3ZFr6j~5BqYVG?Tx!+y<_dJ zlcrH5pAZ5r9Lf!G<^n=okb3NeBPVVZM@|T?oZy?8wY%QkgdZVPg`L&Ro1OQ)nR#zK zpFLwDV);g8ibyA-46=|~KZ=AT^diSnSJ3i2B!fMXL*Amz%O#taV(7FXjX)ZKGy-V^ z(g>sxcpM^t?`)AWeM+Wf8i6zdX$0C45d5Gc3z-XKQ%Ol3DC7|UvIosFp^kHaw9x~Z z3uIGCX^KA8>462NEI48?We&YA;E=gMHkDN7#FRO)U}P4YP?#JYcDjTU%PEpk%Os66GzVM_j{$V0 z`F&fe+m`1~PX55Ux_h2D)r-{Ed#iAp?-hK*Z+Lmb-4t)DoZF>V-6*YD=3Y@7oa2sf zSdQsR1FK>Jvh|kbRQO(=H=K$mZ3{|~MJj3|2L~@rUK!J;rl$|b^n)vxC&%=enahWV z+04-B#49Vs9lPf64~3IhkAN=ejCyaEAE6fU$|~;$Ua@alUj3+PfnS;I>AwCmPoC8V z&Yd3^92goJ8h&bMWO(?QqISMyly|DGnC~37xtq5e=4REkDuudHww&s^Z{G0>)?Krx zor^$M%*s2DnpXGgzzjZWklkH(P1BM6Ep2amroUd)&U$5++x9Z|EZ^eJMo7D{6{4)hRvqq`+3aX;IcUt#MQp2^v_?C0mp-A-=qtKU z-_b+*g??kb>}mEKyU3>5Rd$WN$`;uTw#?pOE6Td7wV=&w-J4R5Qn=B`$6-D@^*BYMhLUWx8v`-%SWP(a25DQK=HBdLv zIzjWG7aw_o-o(2}u51+;i+1IE30fDAz;Y@FwhpY6y#-l@#sx{~lt)cz3P9HJ2#p`K zPbALu^8ah&{e1wP~*c8skCt?gihN2{39Z{Fnp4Uq)i)f zM){jW(&mvYz7LNl5-pKP-o{51=~yCZFJ&i%j0mP{>muag1mqFYhiRi3({7A$k_>uutiC;)2-Jx-MFX=Z% z_d;mi10W>>l(mDh3ad*XJ3(wa${KYi?s?bMP!Ii)9^|M;*xd`+WoZTRods>(gd7J6 zR}x10Ib?Af^zDN{8 a.createdTimestamp - b.createdTimestamp ); + html += ``; html += `Server Name: ${interaction.guild.name}
`; html += `Ticket: ${ticketChannel.name}
`; html += `Message: ${msgs.size} Messages


`; @@ -180,6 +183,7 @@ module.exports = new Command({ msgs = msgs.sort( (a, b) => a.createdTimestamp - b.createdTimestamp ); + html += ``; html += `Server Name: ${interaction.guild.name}
`; html += `Ticket: ${ticketChannel.name}
`; html += `Message: ${msgs.size} Messages


`; diff --git a/Commands/embed.js b/Commands/embed.js index 7b6db55..9bff3a8 100644 --- a/Commands/embed.js +++ b/Commands/embed.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); @@ -15,22 +17,20 @@ module.exports = new Command({ description: cmdconfig.EmbedCommandDesc, slashCommandOptions: [ { - name: "title", - description: "Embed Title", - type: "STRING", - }, + name: "title", + description: "Embed Title", + type: "STRING", + }, { name: "message", description: "Embed Message", type: "STRING", }, - ], permission: "SEND_MESSAGES", async run(interaction) { - let SupportStaff = interaction.guild.roles.cache.find( (SupportTeam) => SupportTeam.name === supportbot.Staff @@ -57,22 +57,18 @@ module.exports = new Command({ interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id) ) { + const EmbedTitle = interaction.options.getString("title"); + const EmbedSubject = interaction.options.getString("message"); - const EmbedTitle = interaction.options.getString("title") - const EmbedSubject = interaction.options.getString("message") - - const EmbedMsg = new Discord.MessageEmbed() - .setTitle(EmbedTitle) - .setDescription(EmbedSubject) - - interaction.reply({ - embeds: [EmbedMsg], - }); + const EmbedMsg = new Discord.MessageEmbed() + .setTitle(EmbedTitle) + .setDescription(EmbedSubject); + interaction.reply({ + embeds: [EmbedMsg], + }); } else { - return interaction.reply({ embeds: [NoPerms] }); + return interaction.reply({ embeds: [NoPerms] }); } - }, - }); diff --git a/Commands/help.js b/Commands/help.js index 8df6568..bc02091 100644 --- a/Commands/help.js +++ b/Commands/help.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); diff --git a/Commands/info.js b/Commands/info.js index 289ce07..b93dcf9 100644 --- a/Commands/info.js +++ b/Commands/info.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); diff --git a/Commands/ping.js b/Commands/ping.js index 799b1f4..edf812d 100644 --- a/Commands/ping.js +++ b/Commands/ping.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); diff --git a/Commands/TicketRemove.js b/Commands/remove.js similarity index 92% rename from Commands/TicketRemove.js rename to Commands/remove.js index f5d673e..d062584 100644 --- a/Commands/TicketRemove.js +++ b/Commands/remove.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); @@ -56,9 +58,7 @@ module.exports = new Command({ interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id) ) { - if ( - !interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`) - ) { + if (!interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") .setDescription(`${supportbot.NoValidTicket}`) diff --git a/Commands/suggest.js b/Commands/suggest.js new file mode 100644 index 0000000..99a99bc --- /dev/null +++ b/Commands/suggest.js @@ -0,0 +1,68 @@ +// SupportBot | Emerald Services +// Ping Command + +const fs = require("fs"); + +const Discord = require("discord.js"); +const yaml = require("js-yaml"); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); + +const Command = require("../Structures/Command.js"); + +module.exports = new Command({ + name: cmdconfig.SuggestCommand, + description: cmdconfig.SuggestCommandDesc, + slashCommandOptions: [ + { + name: "suggestion", + description: "Create a Suggestion", + type: "STRING", + }, + ], + permission: "SEND_MESSAGES", + + async run(interaction) { + const suggestChannel = + interaction.guild.channels.cache.find( + (channel) => channel.name === supportbot.SuggestionChannel + ) || + interaction.guild.channels.cache.find( + (channel) => channel.id === supportbot.SuggestionChannel + ); + + const NoChannel = new Discord.MessageEmbed() + .setTitle("Missing Channel!") + .setDescription(`${supportbot.InvalidChannel}`) + .setColor(supportbot.ErrorColour); + + if (!suggestChannel) return interaction.reply({ embeds: [NoChannel] }); + + let suggestion = interaction.options.getString("suggestion"); + + const SuggestEmbed = new Discord.MessageEmbed() + .addField("Suggestion", suggestion, true) + .addField("From", `<@${interaction.user.id}>`) + .setThumbnail(interaction.user.displayAvatarURL()) + .setFooter(supportbot.EmbedFooter, interaction.user.displayAvatarURL()) + .setColor(supportbot.EmbedColour); + + const suggestionMsg = await suggestChannel.send({ embeds: [SuggestEmbed] }); + if (supportbot.SuggestionUpvote && supportbot.SuggestionDownvote) { + suggestionMsg.react(supportbot.SuggestionUpvote); + suggestionMsg.react(supportbot.SuggestionDownvote); + } + + const Submitted = new Discord.MessageEmbed() + .setTitle("Suggestion Submitted!") + .setDescription( + `:white_check_mark: You have successfully submitted a suggestion.` + ) + .addField("Sent to:", `<#${suggestChannel.id}>`) + .setColor(supportbot.SuccessColour); + + return interaction.reply({ embeds: [Submitted] }); + }, +}); diff --git a/Commands/ticket.js b/Commands/ticket.js index f1a65d8..27329fd 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Command = require("../Structures/Command.js"); const TicketNumberID = require("../Structures/TicketID.js"); @@ -62,10 +64,9 @@ module.exports = new Command({ .setColor(supportbot.WarningColour); if ( - interaction.guild.channels.cache.find( - (ticketChannel) => - ticketChannel.name === `${supportbot.TicketChannel}-${ticketNumberID}` - ) + await interaction.guild.channels.cache.find((ticketChannel) => { + ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`; + }) ) { return interaction.reply({ embeds: [TicketExists] }); } @@ -113,7 +114,7 @@ module.exports = new Command({ const Author = interaction.user; const Everyone = interaction.guild.id; const ticketChannel = await interaction.guild.channels.create( - `${supportbot.TicketChannel}-${ticketNumberID}`, + `${supportbot.TicketPrefix}${ticketNumberID}`, { type: "GUILD_TEXT", } diff --git a/Data/commands.yml b/Configs/commands.yml similarity index 84% rename from Data/commands.yml rename to Configs/commands.yml index 8edc372..1e56d35 100644 --- a/Data/commands.yml +++ b/Configs/commands.yml @@ -7,8 +7,8 @@ # SupportBot created by Emerald Services # Installed with MIT License # -# Discord Support: https:#emeraldsrv.dev/discord -# Community Resources: https:#emeraldsrv.dev/resources +# Discord Support: https://emeraldsrv.dev/discord +# Community Resources: https://emeraldsrv.dev/resources # ------------------------------- # Command Name Configuration @@ -22,6 +22,7 @@ InfoCommand: "info" PingCommand: "ping" HelpCommand: "help" EmbedCommand: "embed" +SuggestCommand: "suggest" # --------------------------------------- # Command Description Configuration @@ -35,5 +36,4 @@ InfoCommandDesc: "Get information about the brand." PingCommandDesc: "Pong!" HelpCommandDesc: "Get a list of all the commands." EmbedCommandDesc: "Send a message as an embed." - - +SuggestCommandDesc: "Suggest a feature for the server." diff --git a/Data/supportbot.yml b/Configs/supportbot.yml similarity index 89% rename from Data/supportbot.yml rename to Configs/supportbot.yml index a7f1cee..e76fa4f 100644 --- a/Data/supportbot.yml +++ b/Configs/supportbot.yml @@ -7,17 +7,17 @@ # SupportBot created by Emerald Services # Installed with MIT License # -# Discord Support: https:#emeraldsrv.dev/discord -# Community Resources: https:#emeraldsrv.dev/resources +# Discord Support: https://emeraldsrv.dev/discord +# Community Resources: https://emeraldsrv.dev/resources -SupportBot_Version: "7.2 pre-3" +SupportBot_Version: "7.2" # ------------------------- # General Configuration # ------------------------- Name: "SupportBot" -Prefix: "!" # Everything uses the new Slash (/) Commands feature! +# No Prefix, as everything uses the new Slash (/) Commands feature! Token: "BOT_TOKEN" # ------------------------- @@ -69,19 +69,25 @@ AutoRole: true AutoRole_Role: "Member" LockdownRole: "@everyone" -Staff: "Support Team" +Staff: "Staff" Admin: "Project Developer" TicketBlackListRole: "Blacklisted" +# ---------------------------- +# Suggestions Configuration +# ---------------------------- + +SuggestionChannel: "suggestions" + # ------------------------- # Tickets Configuration # ------------------------- -TicketCategory: "▬▬ TICKETS ▬▬" -TicketChannel: "ticket" +TicketCategory: "Tickets" +TicketPrefix: "ticket-" # The prefix for ticket channel names -TicketLog: "ticket-log" -TranscriptLog: "ticket-data" +TicketLog: "logs" +TranscriptLog: "transcripts" TranscriptTitle: "Ticket Transcript" TicketLog_Title: "Ticket Log" @@ -165,9 +171,9 @@ DepartmentTitle_2: "Billing Support" DepartmentTitle_3: "Admin Team" # Ticket department title, This is the title for a ticket department to help users know what is available. -DepartmentRole_1: "Support Team" -DepartmentRole_2: "Support Team" -DepartmentRole_3: "Project Developer" +DepartmentRole_1: "Support" +DepartmentRole_2: "Support" +DepartmentRole_3: "Admin" # Ticket roles are the roles that will be able to gain access to tickets depending on what department has been chosen. # --- Closing Config --- diff --git a/Data/ticket-panel.yml b/Configs/ticket-panel.yml similarity index 89% rename from Data/ticket-panel.yml rename to Configs/ticket-panel.yml index baeca8d..10f37bf 100644 --- a/Data/ticket-panel.yml +++ b/Configs/ticket-panel.yml @@ -7,8 +7,8 @@ # SupportBot created by Emerald Services # Installed with MIT License # -# Discord Support: https:#emeraldsrv.dev/discord -# Community Resources: https:#emeraldsrv.dev/resources +# Discord Support: https://emeraldsrv.dev/discord +# Community Resources: https://emeraldsrv.dev/resources # ------------------------------- # Ticket Panel Configuration diff --git a/Data/.DS_Store b/Data/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..23c4cb2f77fa94cdbe0b504efb7a13336d1b286d GIT binary patch literal 6148 zcmeHKOHRWu5PdF{C}Pn{Y}g?A0#xdrMX17pbvXdE4Nyp%ina@OxdaE{44ewFfH(H2 zY6%~K1VU&=8b8PJ^VrW;CI;ZTi(v<70cg+#Yg;VdFnKRtv6{AQ5?vT0!yNmV;tZ2Y zZ)^CA3dr8=aMwl{;2Nv@mm%j~jxaF{;Noc{yttZr0g2{2DvI==27~cpByzizYsdH!jjt z*V>q6PY3sR4-)fJ*61AbhD-*S0lAA0K__*gRw4m3E_CfM6ry>H#8Ti#7K2|#c+|%cCY;s#WG@~!|CP2X=JB2 z6c?g%d>^{QB@wMO1x$f;1vcViOY;BG`}hBKl0BIMrog{az}3@U+U1fow^kM>xz^K9 q>0;8ajJTw*5>heyN-Ex^2V=XJ3NcYEBeI2NKLSApD@=i3Rp13>7;2dS literal 0 HcmV?d00001 diff --git a/Data/TicketData.json b/Data/TicketData.json index 0967ef4..cf23c47 100644 --- a/Data/TicketData.json +++ b/Data/TicketData.json @@ -1 +1,5 @@ -{} +{ + "854057237495676938": { + "id": 2 + } +} \ No newline at end of file diff --git a/Events/interactionCreate.js b/Events/interactionCreate.js index 7b06425..d7e67a1 100644 --- a/Events/interactionCreate.js +++ b/Events/interactionCreate.js @@ -5,8 +5,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 cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); const Event = require("../Structures/Event.js"); @@ -55,7 +57,7 @@ module.exports = new Event("interactionCreate", (client, interaction) => { } if (interaction.customId === "ticketclose") { - if (interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`)) { + if (interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { interaction.message.fetch(); interaction.deferUpdate(); const DeleteTicketEmbed = new Discord.MessageEmbed() @@ -92,6 +94,7 @@ module.exports = new Event("interactionCreate", (client, interaction) => { msgs = msgs.sort( (a, b) => a.createdTimestamp - b.createdTimestamp ); + html += ``; html += `Server Name: ${interaction.guild.name}
`; html += `Ticket: ${ticketChannel.name}
`; html += `Message: ${msgs.size} Messages


`; @@ -124,7 +127,7 @@ module.exports = new Event("interactionCreate", (client, interaction) => { } } if (interaction.customId === "ticketlock") { - if (interaction.channel.name.startsWith(`${supportbot.TicketChannel}`)) { + if (interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { interaction.message.fetch(); interaction.deferUpdate(); let Admin = diff --git a/Events/messageReactionAdd.js b/Events/messageReactionAdd.js deleted file mode 100644 index 22d20d6..0000000 --- a/Events/messageReactionAdd.js +++ /dev/null @@ -1,43 +0,0 @@ -// SupportBot | Emerald Services -// Ready Event - -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 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, - }; - - 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; - - cmd.run(message, message.content); - } catch (error) { - console.error(error); - } - } - } - } -}); diff --git a/Events/ready.js b/Events/ready.js index 872e412..24bfa7f 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -5,9 +5,11 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); const panelconfig = yaml.load( - fs.readFileSync("./Data/ticket-panel.yml", "utf8") + fs.readFileSync("./Configs/ticket-panel.yml", "utf8") ); const Event = require("../Structures/Event.js"); @@ -77,8 +79,8 @@ module.exports = new Event("ready", (client) => { return false; } - const panelid = yaml.load( - fs.readFileSync("./Data/ticket-panel-id.yml", "utf8") + const panelid = JSON.parse( + fs.readFileSync("./Data/ticket-panel-id.json", "utf8") ); chan1.messages.fetch(panelid.TicketPanelID).catch(async (r) => { @@ -115,8 +117,11 @@ module.exports = new Event("ready", (client) => { let data = { TicketPanelID: `${r.id}`, }; - let yamlStr = yaml.dump(data); - fs.writeFileSync("./Data/ticket-panel-id.yml", yamlStr, "utf8"); + fs.writeFileSync( + "./Data/ticket-panel-id.json", + JSON.stringify(data), + "utf8" + ); }) .catch((e) => { console.log("Raw" + e); diff --git a/README.md b/README.md index e69de29..01cd9e6 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,13 @@ +![imgur](https://i.imgur.com/TQj40Mt.png) + +## What is SupportBot? + +SupportBot is an open-sourced support system for discord. It's completely free to use with high amounts of customisation to match your own brand. + +## Quick Links + +**|** [Discord](https://emeraldsrv.dev/discord) **|** +[Hosting](https://emeraldsrv.dev/hosting) **|** +[Documentation](https://docs.emeraldsrv.dev) **|** +[Download via Polymart](https://polymart.org/resource/supportbot-1-discord-ticket-bot.518) **|** +[Download via MC-Market](https://www.mc-market.org/resources/8940/) **|** diff --git a/Structures/Addons.js b/Structures/Addons.js index d5c8935..95b24f7 100644 --- a/Structures/Addons.js +++ b/Structures/Addons.js @@ -6,7 +6,9 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); function RunFunction(interaction) {} diff --git a/Structures/Client.js b/Structures/Client.js index e37007d..e70422d 100644 --- a/Structures/Client.js +++ b/Structures/Client.js @@ -9,7 +9,9 @@ const Event = require("./Event.js"); const intents = new Discord.Intents(32767); const yaml = require("js-yaml"); -const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); class Client extends Discord.Client { constructor() { @@ -23,6 +25,12 @@ class Client extends Discord.Client { .readdirSync("./Commands") .filter((file) => file.endsWith(".js")); + const addonFiles = fs + .readdirSync("./Addons") + .filter((file) => file.endsWith(".js")); + + const addons = addonFiles.map((file) => require(`../Addons/${file}`)); + const commands = commandFiles.map((file) => require(`../Commands/${file}`)); console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Commands ▬▬▬▬▬▬▬"); @@ -32,26 +40,19 @@ class Client extends Discord.Client { this.commands.set(cmd.name, cmd); }); - console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Commands ▬▬▬▬▬▬▬"); - - // Addons - - const addonFiles = fs - .readdirSync("./Addons") - .filter((file) => file.endsWith(".js")); - - const addons = addonFiles.map((file) => require(`../Addons/${file}`)); - - console.log(" "); - console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Addons ▬▬▬▬▬▬▬"); - addons.forEach((addon) => { - console.log(`\u001b[31;1m`, `${addon.name}`, `\u001b[32;1m`, "Loaded"); + console.log( + `\u001b[33m`, + `[ADDON]`, + `\u001b[31;1m`, + `${addon.name}`, + `\u001b[32;1m`, + "Loaded" + ); this.commands.set(addon.name, addon); }); - console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Addons ▬▬▬▬▬▬▬"); - console.log(" "); + console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Commands ▬▬▬▬▬▬▬"); // Slash Commands @@ -63,17 +64,42 @@ class Client extends Discord.Client { defaultPermission: true, })); + const slashCommands1 = addons.map((addon) => ({ + name: addon.name.toLowerCase(), + description: addon.description, + permissions: [], + options: addon.slashCommandOptions, + defaultPermission: true, + })); + this.removeAllListeners(); this.on("ready", async () => { - const cmds = await this.application?.commands.set(slashCommands); + const allCommands = slashCommands.concat(slashCommands1); + await this.application?.commands.set(allCommands); console.log(" "); console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Slash Command ▬▬▬▬▬▬▬"), console.log(" "); - cmds.forEach((cmd) => - console.log(`Slash Command ${cmd.name} registered`) + slashCommands.forEach((cmd) => + console.log( + `\u001b[31;1m`, + `${cmd.name}`, + `\u001b[32;1m`, + `| Slash Command Registered` + ) + ); + + slashCommands1.forEach((addon) => + console.log( + `\u001b[33m`, + `[ADDON]`, + `\u001b[31;1m`, + `${addon.name}`, + `\u001b[32;1m`, + `| Slash Command Registered` + ) ); }); diff --git a/Structures/Command.js b/Structures/Command.js index a075110..ba663b5 100644 --- a/Structures/Command.js +++ b/Structures/Command.js @@ -6,7 +6,9 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); function RunFunction(interaction) {} diff --git a/Structures/Event.js b/Structures/Event.js index 8f81bf1..61e4381 100644 --- a/Structures/Event.js +++ b/Structures/Event.js @@ -6,7 +6,9 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); function RunFunction(client, ...eventArgs) {} diff --git a/Structures/TicketID.js b/Structures/TicketID.js index e0f0d80..11c9d9f 100644 --- a/Structures/TicketID.js +++ b/Structures/TicketID.js @@ -9,7 +9,9 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); class TicketNumberID { static pad(guildId) { diff --git a/index.js b/index.js index ed48bb2..db39ccc 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,9 @@ 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 supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); const Client = require("./Structures/Client.js"); const client = new Client({}); diff --git a/package-lock.json b/package-lock.json index adbb482..96e00a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "supportbot", - "version": "7.2.0", + "version": "7.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "supportbot", - "version": "7.2.0", + "version": "7.3.0", "license": "MIT", "dependencies": { "discord.js": "^13.2.0", diff --git a/package.json b/package.json index aa20175..d7e99f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supportbot", - "version": "7.2.0", + "version": "7.3.0", "description": "SupportBot is an open-sourced support system for discord. It's completely free to use with high amounts of customization to match your own brand.", "main": "index.js", "scripts": { @@ -8,14 +8,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/1tzemerald/SupportBot.git" + "url": "git+https://github.com/Emerald-Services/SupportBot.git" }, "author": "Emerald Services", "license": "MIT", "bugs": { - "url": "https://github.com/1tzemerald/SupportBot/issues" + "url": "https://github.com/Emerald-Services/SupportBot/issues" }, - "homepage": "https://github.com/1tzemerald/SupportBot#readme", + "homepage": "https://github.com/Emerald-Services/SupportBot#readme", "dependencies": { "discord.js": "^13.2.0", "js-yaml": "^4.1.0" From af81b6536a4c4091ab8144ac28c763ecb3f10f50 Mon Sep 17 00:00:00 2001 From: Xiled Emerald Date: Fri, 29 Oct 2021 22:38:13 +0100 Subject: [PATCH 02/10] Update issue templates --- .github/ISSUE_TEMPLATE/-suggest-an-idea-.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/-suggest-an-idea-.md diff --git a/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md b/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md new file mode 100644 index 0000000..828ea09 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md @@ -0,0 +1,20 @@ +--- +name: "❓Suggest an Idea?" +about: Suggest an idea for SupportBot? +title: "[SUGGESTION]" +labels: Suggestion +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 7e9ece50a0c7dc70caf41f816942e10d6e56d112 Mon Sep 17 00:00:00 2001 From: Xiled Emerald Date: Fri, 29 Oct 2021 22:40:12 +0100 Subject: [PATCH 03/10] Update issue templates --- .github/ISSUE_TEMPLATE/---bug-report.md | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/---bug-report.md diff --git a/.github/ISSUE_TEMPLATE/---bug-report.md b/.github/ISSUE_TEMPLATE/---bug-report.md new file mode 100644 index 0000000..76f2ada --- /dev/null +++ b/.github/ISSUE_TEMPLATE/---bug-report.md @@ -0,0 +1,38 @@ +--- +name: "\U0001F41B Bug report" +about: Create a report to help us improve +title: "[BUG]" +labels: Bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. From 3c613088e5a3f519dc9681011c178a95ede8f19a Mon Sep 17 00:00:00 2001 From: Xiled Emerald Date: Fri, 29 Oct 2021 23:38:18 +0100 Subject: [PATCH 04/10] Delete supportbot.yml --- Configs/supportbot.yml | 194 ----------------------------------------- 1 file changed, 194 deletions(-) delete mode 100644 Configs/supportbot.yml diff --git a/Configs/supportbot.yml b/Configs/supportbot.yml deleted file mode 100644 index e76fa4f..0000000 --- a/Configs/supportbot.yml +++ /dev/null @@ -1,194 +0,0 @@ -# ___ _ ___ _ -# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ -# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | -# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| -# |_| |_| -# -# SupportBot created by Emerald Services -# Installed with MIT License -# -# Discord Support: https://emeraldsrv.dev/discord -# Community Resources: https://emeraldsrv.dev/resources - -SupportBot_Version: "7.2" - -# ------------------------- -# General Configuration -# ------------------------- - -Name: "SupportBot" -# No Prefix, as everything uses the new Slash (/) Commands feature! -Token: "BOT_TOKEN" - -# ------------------------- -# Activity Configuration -# ------------------------- - -BotActivity: "Need Help? /ticket" - -StreamingURL: "https://www.twitch.tv/YOUR_TWITCH_NAME" -# Set The ActivityType to "STREAMING" for a streaming status! - -ActivityType: "PLAYING" -# Activity status can either be PLAYING, WATCHING, LISTENING or STREAMING. - -# ------------------------- -# Embed Configuration -# ------------------------- - -EmbedColour: "#f74343" -EmbedFooter: "SupportBot | An Advanced Ticket System" - -ErrorColour: "#d12519" -SuccessColour: "#04b545" -WarningColour: "#fca117" - -# ------------------------- -# Information Configuration -# ------------------------- - -InfoTitle: "Information" -AboutMe: "Hi, I'm SupportBot an advanced discord ticket bot with 100% customization! [Download](https://emeraldsrv.dev/download)" - -InfoButtonText: "Visit Site" -InfoURL: "https://emeraldsrv.dev" -InfoColour: "#f74343" - -# ------------------------- -# Help Configuration -# ------------------------- - -HelpMenu: true # Do not change! -SendHelpPage: "channel" # Set to channel or dm - -# ------------------------- -# Role Configuration -# ------------------------- - -AutoRole: true -AutoRole_Role: "Member" -LockdownRole: "@everyone" - -Staff: "Staff" -Admin: "Project Developer" -TicketBlackListRole: "Blacklisted" - -# ---------------------------- -# Suggestions Configuration -# ---------------------------- - -SuggestionChannel: "suggestions" - -# ------------------------- -# Tickets Configuration -# ------------------------- - -TicketCategory: "Tickets" -TicketPrefix: "ticket-" # The prefix for ticket channel names - -TicketLog: "logs" -TranscriptLog: "transcripts" - -TranscriptTitle: "Ticket Transcript" -TicketLog_Title: "Ticket Log" -TicketBlackListMessage: "You are not allowed to open a ticket" - -TicketSubject: "description" -# "description" will displays the ticket reason within the channel description -# "embed" will displays the ticket reason within the ticket embed - -AllowTicketMentions: true -# Set to true to allow the ticket to mention the author and the support team. -# Set to false to dis-allow mentions within tickets. - -# --- Creation Config --- -# --- Start --- - -# Available Placeholders: - -# %ticketusername% - User who created the ticket. -# <@%ticketauthor%> - Tags the user who created the ticket. -# <#%ticketid%> - Mentions the ticket channel. - -Ticket_Title: "Server Support | %ticketusername%" -TicketMessage: "Hello <@%ticketauthor%>, Thank you for creating a support ticket\nPlease wait patiently whilst a member of our team reaches out to you." - -Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" -NoTicketSubject: "No Reason Provided!" - -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 --- - -# Discord Button Colour Selection -# PRIMARY - Blurple -# DANGER - Red -# SUCCESS - Green -# Secondary - Grey - -TicketLockReaction: "🔒" -TicketDeleteReaction: "⛔" -LockTicketCategory: "Archive" - -TicketCloseEmoji: "❌" -TicketDeleteEmoji: "⛔" -TicketLockEmoji: "🔒" - -TicketCloseColour: "DANGER" -TicketDeleteColour: "DANGER" -TicketLockColour: "PRIMARY" - -TicketDept1Colour: "PRIMARY" -TicketDept2Colour: "PRIMARY" -TicketDept3Colour: "PRIMARY" - -TicketDept1Emoji: "1️⃣" -TicketDept2Emoji: "2️⃣" -TicketDept3Emoji: "3️⃣" - -TranscriptSavedMessage: "📝 **Transcript Saved!**" -TicketLockMessage: "❌ **Ticket Locked!**" -TicketDeleteMessage: "⚠ **Ticket Deleting!**" # Tickets deleting after 5 seconds by default. -TicketDeleteTime: 5000 # Time must be set in milliseconds. - -# --- Departments Config --- -# --- Start --- - -TicketDepartments: true - -AllowStaff: true -# 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. - -DepartmentTitle_1: "General Support" -DepartmentTitle_2: "Billing Support" -DepartmentTitle_3: "Admin Team" -# Ticket department title, This is the title for a ticket department to help users know what is available. - -DepartmentRole_1: "Support" -DepartmentRole_2: "Support" -DepartmentRole_3: "Admin" -# Ticket roles are the roles that will be able to gain access to tickets depending on what department has been chosen. - -# --- Closing Config --- -# --- Start --- - -ClosingTicket: ":warning: You have requested to close your support ticket." -ClosingConfirmation_Word: "confirm" -CloseConfirmation: false - -# --------------------------- -# Error / Warning Messages -# --------------------------- - -IncorrectPerms: ":x: **Err!** You do not have the correct permissions to use this command." -InvalidChannel: ":x: **Err!** Channel not found. Please create it!" -UserNotFound: ":x: **Err!** This user doesn't exist, Are they in this server?" -NoValidTicket: ":warning: You cannot execute this command here." -TicketExists: ":warning: This ticket cannot be opened, It already exists!" From bdff7c6069ff3e753c899efd4ec5730fe8d0c72a Mon Sep 17 00:00:00 2001 From: Xiled Emerald Date: Sun, 7 Nov 2021 21:39:53 +0000 Subject: [PATCH 05/10] Update supportbot.yml --- Configs/supportbot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configs/supportbot.yml b/Configs/supportbot.yml index 55b4355..24cc931 100644 --- a/Configs/supportbot.yml +++ b/Configs/supportbot.yml @@ -10,7 +10,7 @@ # Discord Support: https://emeraldsrv.dev/discord # Community Resources: https://emeraldsrv.dev/resources -SupportBot_Version: "7.3" +SupportBot_Version: "7.3.1" # ------------------------- # General Configuration From f53afd7bc9e185c2527cd0e995d6224e4512c4f3 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 26 Nov 2021 13:13:15 -0600 Subject: [PATCH 06/10] Create prettier.yml --- .github/workflows/prettier.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..01091ff --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,25 @@ +name: Continuous Integration + +# This action works with pull requests and pushes +on: + pull_request: + push: + branches: + - master + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} + + - name: Prettify code + uses: creyD/prettier_action@v4.0 + with: + # This part is also where you can pass other options, for example: + prettier_options: --write **/*.{js,md} From f359a60343abae11198bd7126b4b277dc0a37ea7 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 26 Nov 2021 13:16:15 -0600 Subject: [PATCH 07/10] Update node.js.yml --- .github/workflows/node.js.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 15d7058..37df8be 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x] + node-version: [16.x, 17.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -25,7 +25,4 @@ jobs: 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 From 3771872cd23bf2d1c2b9f977ad8a5d10998ac7db Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 26 Nov 2021 13:17:57 -0600 Subject: [PATCH 08/10] Update prettier.yml --- .github/workflows/prettier.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 01091ff..5cf7252 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -5,7 +5,8 @@ on: pull_request: push: branches: - - master + - release + - dev jobs: prettier: From 1f928324c2748fe9ae513a3a6d3415f0372fc892 Mon Sep 17 00:00:00 2001 From: N0ahMC Date: Fri, 26 Nov 2021 19:18:15 +0000 Subject: [PATCH 09/10] Prettified Code! --- .github/ISSUE_TEMPLATE/---bug-report.md | 20 +- .github/ISSUE_TEMPLATE/-suggest-an-idea-.md | 3 +- package-lock.json | 526 -------------------- 3 files changed, 12 insertions(+), 537 deletions(-) delete mode 100644 package-lock.json diff --git a/.github/ISSUE_TEMPLATE/---bug-report.md b/.github/ISSUE_TEMPLATE/---bug-report.md index 76f2ada..e1db2d3 100644 --- a/.github/ISSUE_TEMPLATE/---bug-report.md +++ b/.github/ISSUE_TEMPLATE/---bug-report.md @@ -3,8 +3,7 @@ name: "\U0001F41B Bug report" about: Create a report to help us improve title: "[BUG]" labels: Bug -assignees: '' - +assignees: "" --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md b/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md index 828ea09..d2e637f 100644 --- a/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md +++ b/.github/ISSUE_TEMPLATE/-suggest-an-idea-.md @@ -3,8 +3,7 @@ name: "❓Suggest an Idea?" about: Suggest an idea for SupportBot? title: "[SUGGESTION]" labels: Suggestion -assignees: '' - +assignees: "" --- **Is your feature request related to a problem? Please describe.** diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 96e00a2..0000000 --- a/package-lock.json +++ /dev/null @@ -1,526 +0,0 @@ -{ - "name": "supportbot", - "version": "7.3.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "supportbot", - "version": "7.3.0", - "license": "MIT", - "dependencies": { - "discord.js": "^13.2.0", - "js-yaml": "^4.1.0" - } - }, - "node_modules/@discordjs/builders": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-0.6.0.tgz", - "integrity": "sha512-mH3Gx61LKk2CD05laCI9K5wp+a3NyASHDUGx83DGJFkqJlRlSV5WMJNY6RS37A5SjqDtGMF4wVR9jzFaqShe6Q==", - "dependencies": { - "@sindresorhus/is": "^4.0.1", - "discord-api-types": "^0.22.0", - "ow": "^0.27.0", - "ts-mixer": "^6.0.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@discordjs/builders/node_modules/discord-api-types": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.22.0.tgz", - "integrity": "sha512-l8yD/2zRbZItUQpy7ZxBJwaLX/Bs2TGaCthRppk8Sw24LOIWg12t9JEreezPoYD0SQcC2htNNo27kYEpYW/Srg==", - "engines": { - "node": ">=12" - } - }, - "node_modules/@discordjs/collection": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.2.1.tgz", - "integrity": "sha512-vhxqzzM8gkomw0TYRF3tgx7SwElzUlXT/Aa41O7mOcyN6wIJfj5JmDWaO5XGKsGSsNx7F3i5oIlrucCCWV1Nog==", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@discordjs/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@discordjs/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-ZfFsbgEXW71Rw/6EtBdrP5VxBJy4dthyC0tpQKGKmYFImlmmrykO14Za+BiIVduwjte0jXEBlhSKf0MWbFp9Eg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@sapphire/async-queue": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.1.7.tgz", - "integrity": "sha512-EBRERa9NqK/EV6DIPBVtjjdHBsu/DSdMuYAydmoIyIPONzp0UAxf2G6JGJ52WkiONtPRx6KNuqB5Q8dm14fwyw==", - "engines": { - "node": ">=v14.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@sindresorhus/is": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz", - "integrity": "sha512-VkE3KLBmJwcCaVARtQpfuKcKv8gcBmUubrfHGF84dXuuW6jgsRYxPtzcIhPyK9WAPpRt2/xY6zkD9MnRaJzSyw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@types/node": { - "version": "16.11.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.4.tgz", - "integrity": "sha512-TMgXmy0v2xWyuCSCJM6NCna2snndD8yvQF67J29ipdzMcsPa9u+o0tjF5+EQNdhcuZplYuouYqpc4zcd5I6amQ==" - }, - "node_modules/@types/ws": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.0.tgz", - "integrity": "sha512-cyeefcUCgJlEk+hk2h3N+MqKKsPViQgF5boi9TTHSK+PoR9KWBb/C5ccPcDyAqgsbAYHTwulch725DV84+pSpg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/discord-api-types": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.23.1.tgz", - "integrity": "sha512-igWmn+45mzXRWNEPU25I/pr8MwxHb767wAr51oy3VRLRcTlp5ADBbrBR0lq3SA1Rfw3MtM4TQu1xo3kxscfVdQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/discord.js": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.2.0.tgz", - "integrity": "sha512-nyxUvL8wuQG38zx13wUMkpcA8koFszyiXdkSLwwM9opKW2LC2H5gD0cTZxImeJ6GtEnKPWT8xBiE8lLBmbNIhw==", - "dependencies": { - "@discordjs/builders": "^0.6.0", - "@discordjs/collection": "^0.2.1", - "@discordjs/form-data": "^3.0.1", - "@sapphire/async-queue": "^1.1.5", - "@types/ws": "^8.2.0", - "discord-api-types": "^0.23.1", - "node-fetch": "^2.6.1", - "ws": "^8.2.3" - }, - "engines": { - "node": ">=16.6.0", - "npm": ">=7.0.0" - } - }, - "node_modules/dot-prop": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", - "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" - }, - "node_modules/mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", - "dependencies": { - "mime-db": "1.50.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/node-fetch": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.5.tgz", - "integrity": "sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - } - }, - "node_modules/ow": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ow/-/ow-0.27.0.tgz", - "integrity": "sha512-SGnrGUbhn4VaUGdU0EJLMwZWSupPmF46hnTRII7aCLCrqixTAC5eKo8kI4/XXf1eaaI8YEVT+3FeGNJI9himAQ==", - "dependencies": { - "@sindresorhus/is": "^4.0.1", - "callsites": "^3.1.0", - "dot-prop": "^6.0.1", - "lodash.isequal": "^4.5.0", - "type-fest": "^1.2.1", - "vali-date": "^1.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "node_modules/ts-mixer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.0.tgz", - "integrity": "sha512-nXIb1fvdY5CBSrDIblLn73NW0qRDk5yJ0Sk1qPBF560OdJfQp9jhl+0tzcY09OZ9U+6GpeoI9RjwoIKFIoB9MQ==" - }, - "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" - }, - "node_modules/type-fest": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", - "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/vali-date": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", - "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/ws": { - "version": "8.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", - "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - } - }, - "dependencies": { - "@discordjs/builders": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-0.6.0.tgz", - "integrity": "sha512-mH3Gx61LKk2CD05laCI9K5wp+a3NyASHDUGx83DGJFkqJlRlSV5WMJNY6RS37A5SjqDtGMF4wVR9jzFaqShe6Q==", - "requires": { - "@sindresorhus/is": "^4.0.1", - "discord-api-types": "^0.22.0", - "ow": "^0.27.0", - "ts-mixer": "^6.0.0", - "tslib": "^2.3.1" - }, - "dependencies": { - "discord-api-types": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.22.0.tgz", - "integrity": "sha512-l8yD/2zRbZItUQpy7ZxBJwaLX/Bs2TGaCthRppk8Sw24LOIWg12t9JEreezPoYD0SQcC2htNNo27kYEpYW/Srg==" - } - } - }, - "@discordjs/collection": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.2.1.tgz", - "integrity": "sha512-vhxqzzM8gkomw0TYRF3tgx7SwElzUlXT/Aa41O7mOcyN6wIJfj5JmDWaO5XGKsGSsNx7F3i5oIlrucCCWV1Nog==" - }, - "@discordjs/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@discordjs/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-ZfFsbgEXW71Rw/6EtBdrP5VxBJy4dthyC0tpQKGKmYFImlmmrykO14Za+BiIVduwjte0jXEBlhSKf0MWbFp9Eg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "@sapphire/async-queue": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.1.7.tgz", - "integrity": "sha512-EBRERa9NqK/EV6DIPBVtjjdHBsu/DSdMuYAydmoIyIPONzp0UAxf2G6JGJ52WkiONtPRx6KNuqB5Q8dm14fwyw==" - }, - "@sindresorhus/is": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz", - "integrity": "sha512-VkE3KLBmJwcCaVARtQpfuKcKv8gcBmUubrfHGF84dXuuW6jgsRYxPtzcIhPyK9WAPpRt2/xY6zkD9MnRaJzSyw==" - }, - "@types/node": { - "version": "16.11.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.4.tgz", - "integrity": "sha512-TMgXmy0v2xWyuCSCJM6NCna2snndD8yvQF67J29ipdzMcsPa9u+o0tjF5+EQNdhcuZplYuouYqpc4zcd5I6amQ==" - }, - "@types/ws": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.0.tgz", - "integrity": "sha512-cyeefcUCgJlEk+hk2h3N+MqKKsPViQgF5boi9TTHSK+PoR9KWBb/C5ccPcDyAqgsbAYHTwulch725DV84+pSpg==", - "requires": { - "@types/node": "*" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "discord-api-types": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.23.1.tgz", - "integrity": "sha512-igWmn+45mzXRWNEPU25I/pr8MwxHb767wAr51oy3VRLRcTlp5ADBbrBR0lq3SA1Rfw3MtM4TQu1xo3kxscfVdQ==" - }, - "discord.js": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.2.0.tgz", - "integrity": "sha512-nyxUvL8wuQG38zx13wUMkpcA8koFszyiXdkSLwwM9opKW2LC2H5gD0cTZxImeJ6GtEnKPWT8xBiE8lLBmbNIhw==", - "requires": { - "@discordjs/builders": "^0.6.0", - "@discordjs/collection": "^0.2.1", - "@discordjs/form-data": "^3.0.1", - "@sapphire/async-queue": "^1.1.5", - "@types/ws": "^8.2.0", - "discord-api-types": "^0.23.1", - "node-fetch": "^2.6.1", - "ws": "^8.2.3" - } - }, - "dot-prop": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", - "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", - "requires": { - "is-obj": "^2.0.0" - } - }, - "is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" - }, - "mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==" - }, - "mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", - "requires": { - "mime-db": "1.50.0" - } - }, - "node-fetch": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.5.tgz", - "integrity": "sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "ow": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ow/-/ow-0.27.0.tgz", - "integrity": "sha512-SGnrGUbhn4VaUGdU0EJLMwZWSupPmF46hnTRII7aCLCrqixTAC5eKo8kI4/XXf1eaaI8YEVT+3FeGNJI9himAQ==", - "requires": { - "@sindresorhus/is": "^4.0.1", - "callsites": "^3.1.0", - "dot-prop": "^6.0.1", - "lodash.isequal": "^4.5.0", - "type-fest": "^1.2.1", - "vali-date": "^1.0.0" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "ts-mixer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.0.tgz", - "integrity": "sha512-nXIb1fvdY5CBSrDIblLn73NW0qRDk5yJ0Sk1qPBF560OdJfQp9jhl+0tzcY09OZ9U+6GpeoI9RjwoIKFIoB9MQ==" - }, - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" - }, - "type-fest": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", - "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==" - }, - "vali-date": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", - "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "ws": { - "version": "8.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", - "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", - "requires": {} - } - } -} From 7f44634d4ff143beab5074718a76f92f875429fa Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 4 Dec 2021 21:04:47 -0600 Subject: [PATCH 10/10] Delete prettier.yml --- .github/workflows/prettier.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml deleted file mode 100644 index 5cf7252..0000000 --- a/.github/workflows/prettier.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Continuous Integration - -# This action works with pull requests and pushes -on: - pull_request: - push: - branches: - - release - - dev - -jobs: - prettier: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - # Make sure the actual branch is checked out when running on pull requests - ref: ${{ github.head_ref }} - - - name: Prettify code - uses: creyD/prettier_action@v4.0 - with: - # This part is also where you can pass other options, for example: - prettier_options: --write **/*.{js,md}