dockerfile and escalation change

This commit is contained in:
indifferentketchup
2026-04-07 09:58:10 -05:00
parent 56ba8e363a
commit 7da082275f
3 changed files with 17 additions and 5 deletions

View File

@@ -125,8 +125,8 @@ async function runEscalation(interaction, ticket, nextTier, reason) {
);
const escalationBody = CONFIG.ESCALATION_MESSAGE
.replace(/\{support_name\}/g, CONFIG.SUPPORT_NAME)
+ (reason ? `\n\n**Reason:** ${reason}` : '');
.replace(/\\n/g, '\n')
.replace(/\{support_name\}/g, CONFIG.SUPPORT_NAME);
const escalatedEmbed = new EmbedBuilder()
.setTitle(`🚨 Escalated to ${nextTier === 1 ? 'Tier 2' : 'Tier 3'} Support`)
.setDescription(escalationBody)
@@ -147,7 +147,7 @@ async function runEscalation(interaction, ticket, nextTier, reason) {
if (!isDiscordTicket && ticket.gmailThreadId) {
try {
const emailBody = CONFIG.ESCALATION_MESSAGE.replace(/\{support_name\}/g, CONFIG.SUPPORT_NAME) + (reason ? `\n\nReason: ${reason}` : '');
const emailBody = CONFIG.ESCALATION_MESSAGE.replace(/\\n/g, '\n').replace(/\{support_name\}/g, CONFIG.SUPPORT_NAME);
await sendTicketNotificationEmail(
ticket,
`Ticket escalated to ${nextTier === 1 ? 'tier 2' : 'tier 3'}`,