Updated config defaults

This commit is contained in:
Noah committed 2021-10-27 19:48:00 -05:00
1 parent 6c14a6a06c
commit a6b105a2e1
4 files changed
+13 -11

No files matched your search

+2 -1
View File
@@ -32,7 +32,7 @@ module.exports = new Command({
permission: "SEND_MESSAGES",
async run(interaction) {
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}`)
@@ -97,6 +97,7 @@ module.exports = new Command({
msgs = msgs.sort(
(a, b) => a.createdTimestamp - b.createdTimestamp
);
html += `<style>* {background-color: #2c2f33;color: #fff;}</style>`;
html += `<strong>Server Name:</strong> ${interaction.guild.name}<br>`;
html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`;
html += `<strong>Message:</strong> ${msgs.size} Messages<br><br><br>`;
+2 -2
View File
@@ -66,7 +66,7 @@ module.exports = new Command({
if (
interaction.guild.channels.cache.find(
(ticketChannel) =>
ticketChannel.name === `${supportbot.TicketChannel}-${ticketNumberID}`
ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`
)
) {
return interaction.reply({ embeds: [TicketExists] });
@@ -115,7 +115,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",
}
+6 -6
View File
@@ -69,8 +69,8 @@ AutoRole: true
AutoRole_Role: "Member"
LockdownRole: "@everyone"
Staff: "Support Team"
Admin: "Project Developer"
Staff: "Staff"
Admin: "Admin"
TicketBlackListRole: "Blacklisted"
# ----------------------------
@@ -83,11 +83,11 @@ 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"
+3 -2
View File
@@ -57,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()
@@ -94,6 +94,7 @@ module.exports = new Event("interactionCreate", (client, interaction) => {
msgs = msgs.sort(
(a, b) => a.createdTimestamp - b.createdTimestamp
);
html += `<style>* {background-color: #2c2f33;color: #fff;}</style>`;
html += `<strong>Server Name:</strong> ${interaction.guild.name}<br>`;
html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`;
html += `<strong>Message:</strong> ${msgs.size} Messages<br><br><br>`;
@@ -126,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 =