change in ticket renaming and flow

This commit is contained in:
indifferentketchup
2026-04-06 16:37:50 -05:00
parent 1496a96274
commit 4b984312a8
4 changed files with 58 additions and 42 deletions

View File

@@ -134,6 +134,22 @@ const CONFIG = {
}
return map;
})(),
STAFF_EMOJIS: (() => {
const raw = process.env.STAFF_EMOJIS;
const map = new Map();
if (!raw || !String(raw).trim()) return map;
for (const part of String(raw).split(',')) {
const seg = part.trim();
if (!seg) continue;
const idx = seg.indexOf(':');
if (idx === -1) continue;
const userId = seg.slice(0, idx).trim();
const emoji = seg.slice(idx + 1).trim();
if (userId && emoji) map.set(userId, emoji);
}
return map;
})(),
CLAIMER_EMOJI_FALLBACK: process.env.CLAIMER_EMOJI_FALLBACK || '🎫',
STAFF_T1_CATEGORY: process.env.STAFF_T1_CATEGORY || null,
STAFF_T2_CATEGORY: process.env.STAFF_T2_CATEGORY || null,
STAFF_T3_CATEGORY: process.env.STAFF_T3_CATEGORY || null,