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