diff --git a/.DS_Store b/.DS_Store index 893786d..9695d15 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Commands/ticket.js b/Commands/ticket.js index 8edeeeb..a63d010 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -102,7 +102,7 @@ module.exports = new Command({ ephemeral: true, }); let TicketCategory = await getCategory( - supportbot.Departments[department].category || supportbot.TicketCategory, + supportbot.Departments[department].category, interaction.guild ); const ticketChannel = await interaction.guild.channels.create( @@ -306,8 +306,7 @@ module.exports = new Command({ VIEW_CHANNEL: true, }); let TicketCat = await getCategory( - supportbot.Departments[department].category || - supportbot.TicketCategory, + supportbot.Departments[department].category, interaction.guild ); await ticketChannel.setParent(TicketCat.id, { lockPermissions: false }); diff --git a/Configs/commands.yml b/Configs/commands.yml index 0d55b5a..2196b67 100644 --- a/Configs/commands.yml +++ b/Configs/commands.yml @@ -23,7 +23,7 @@ InfoCommand: "info" PingCommand: "ping" HelpCommand: "help" EmbedCommand: "embed" -SuggestCommand: "suggestion" +SuggestCommand: "suggest" TranslateCommand: "translate" UserInfoCommand: "userinfo" diff --git a/Configs/supportbot.yml b/Configs/supportbot.yml index 2bd53ef..b5cb24d 100644 --- a/Configs/supportbot.yml +++ b/Configs/supportbot.yml @@ -42,16 +42,6 @@ ErrorColour: "#d12519" SuccessColour: "#04b545" WarningColour: "#fca117" -# ------------------------- -# Information Configuration -# ------------------------- - -InfoTitle: "Information" - -InfoButtonText: "Visit Site" -InfoURL: "https://emeraldsrv.dev" -InfoColour: "#f74343" - # ------------------------- # Role Configuration # ------------------------- @@ -103,6 +93,15 @@ EmbedLeaveThumbnail: false # "BOT" will display the bot's profile picture. # false to disable +# ------------------------- +# Information Configuration +# ------------------------- + +InfoTitle: "Information" + +InfoButtonText: "Visit Site" +InfoURL: "https://emeraldsrv.dev" +InfoColour: "#f74343" # ---------------------------- # Suggestions Configuration @@ -128,7 +127,6 @@ TranslateLogChannel: "translations-log" # Tickets Configuration # ------------------------- -TicketCategory: "Tickets" # Only for tickets without a category TicketPrefix: "ticket-" # The prefix for ticket channel names TicketLog: "ticket-data" @@ -198,11 +196,13 @@ TranscriptSavedMessage: "📝 **Transcript Saved!**" TicketLockMessage: "❌ **Ticket Locked!**" TicketDeleteMessage: "⚠ **Ticket Deleting!**" # Tickets deleting after 5 seconds by default. -# --- Departments Config --- -# --- Start --- +# ------------------------- +# Tickets Categories +# ------------------------- +# THIS IS REQUIRED TO BE ENABLED! TicketDepartments: true -# Delete the ticket if no department selected. TIME IN MINUTES + Timeout: 5 # Set to true to allow all staff to access the ticket AllowAllStaff: false @@ -214,19 +214,20 @@ Departments: role: "Staff" color: "SECONDARY" emoji: "1️⃣" - category: "Billing Support" + category: "Tickets" - title: "Billing Support" role: "Staff" color: "SECONDARY" emoji: "2️⃣" - category: "Admin Team" + category: "Billing Support" - title: "Admin Team" role: "Admin" color: "SECONDARY" emoji: "3️⃣" category: "Admin Support" + # - title: "Other" # role: "Staff" # color: "SECONDARY" diff --git a/Events/ready.js b/Events/ready.js index 5a0ada7..cb1e026 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -96,7 +96,7 @@ module.exports = new Event("ready", async (client, interaction) => { supportbot.LeaveChannel, supportbot.TranslateLogChannel ]; - const categories = [supportbot.TicketCategory]; + //const categories = [supportbot.TicketCategory]; const missingC = []; const missingR = []; @@ -112,10 +112,10 @@ module.exports = new Event("ready", async (client, interaction) => { const find = await getRole(r, client.guilds.cache.first()); if (!find) missingR.push(r); } - for (let cat of categories) { - const find = await getCategory(cat, client.guilds.cache.first()); - if (!find) missingCat.push(cat); - } + // for (let cat of categories) { + // const find = await getCategory(cat, client.guilds.cache.first()); + // if (!find) missingCat.push(cat); + // } if (missingR.length > 0) { console.log(