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", permission: "SEND_MESSAGES",
async run(interaction) { async run(interaction) {
if (!interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`)) { if (!interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) {
const Exists = new Discord.MessageEmbed() const Exists = new Discord.MessageEmbed()
.setTitle("No Ticket Found!") .setTitle("No Ticket Found!")
.setDescription(`${supportbot.NoValidTicket}`) .setDescription(`${supportbot.NoValidTicket}`)
@@ -97,6 +97,7 @@ module.exports = new Command({
msgs = msgs.sort( msgs = msgs.sort(
(a, b) => a.createdTimestamp - b.createdTimestamp (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>Server Name:</strong> ${interaction.guild.name}<br>`;
html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`; html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`;
html += `<strong>Message:</strong> ${msgs.size} Messages<br><br><br>`; html += `<strong>Message:</strong> ${msgs.size} Messages<br><br><br>`;
+2 -2
View File
@@ -66,7 +66,7 @@ module.exports = new Command({
if ( if (
interaction.guild.channels.cache.find( interaction.guild.channels.cache.find(
(ticketChannel) => (ticketChannel) =>
ticketChannel.name === `${supportbot.TicketChannel}-${ticketNumberID}` ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`
) )
) { ) {
return interaction.reply({ embeds: [TicketExists] }); return interaction.reply({ embeds: [TicketExists] });
@@ -115,7 +115,7 @@ module.exports = new Command({
const Author = interaction.user; const Author = interaction.user;
const Everyone = interaction.guild.id; const Everyone = interaction.guild.id;
const ticketChannel = await interaction.guild.channels.create( const ticketChannel = await interaction.guild.channels.create(
`${supportbot.TicketChannel}-${ticketNumberID}`, `${supportbot.TicketPrefix}${ticketNumberID}`,
{ {
type: "GUILD_TEXT", type: "GUILD_TEXT",
} }
+6 -6
View File
@@ -69,8 +69,8 @@ AutoRole: true
AutoRole_Role: "Member" AutoRole_Role: "Member"
LockdownRole: "@everyone" LockdownRole: "@everyone"
Staff: "Support Team" Staff: "Staff"
Admin: "Project Developer" Admin: "Admin"
TicketBlackListRole: "Blacklisted" TicketBlackListRole: "Blacklisted"
# ---------------------------- # ----------------------------
@@ -83,11 +83,11 @@ SuggestionChannel: "suggestions"
# Tickets Configuration # Tickets Configuration
# ------------------------- # -------------------------
TicketCategory: "▬▬ TICKETS ▬▬" TicketCategory: "Tickets"
TicketChannel: "ticket" TicketPrefix: "ticket-" # The prefix for ticket channel names
TicketLog: "ticket-log" TicketLog: "logs"
TranscriptLog: "ticket-data" TranscriptLog: "transcripts"
TranscriptTitle: "Ticket Transcript" TranscriptTitle: "Ticket Transcript"
TicketLog_Title: "Ticket Log" 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.customId === "ticketclose") {
if (interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`)) { if (interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) {
interaction.message.fetch(); interaction.message.fetch();
interaction.deferUpdate(); interaction.deferUpdate();
const DeleteTicketEmbed = new Discord.MessageEmbed() const DeleteTicketEmbed = new Discord.MessageEmbed()
@@ -94,6 +94,7 @@ module.exports = new Event("interactionCreate", (client, interaction) => {
msgs = msgs.sort( msgs = msgs.sort(
(a, b) => a.createdTimestamp - b.createdTimestamp (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>Server Name:</strong> ${interaction.guild.name}<br>`;
html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`; html += `<strong>Ticket:</strong> ${ticketChannel.name}<br>`;
html += `<strong>Message:</strong> ${msgs.size} Messages<br><br><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.customId === "ticketlock") {
if (interaction.channel.name.startsWith(`${supportbot.TicketChannel}`)) { if (interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) {
interaction.message.fetch(); interaction.message.fetch();
interaction.deferUpdate(); interaction.deferUpdate();
let Admin = let Admin =