change in ticket renaming and flow
This commit is contained in:
16
config.js
16
config.js
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user