personal queue
This commit is contained in:
21
config.js
21
config.js
@@ -115,7 +115,26 @@ const CONFIG = {
|
||||
EMBED_COLOR_CLOSED: parseInt(process.env.EMBED_COLOR_CLOSED) || 0xFF0000,
|
||||
EMBED_COLOR_CLAIMED: parseInt(process.env.EMBED_COLOR_CLAIMED) || 0xFFFF00,
|
||||
EMBED_COLOR_ESCALATED: parseInt(process.env.EMBED_COLOR_ESCALATED) || 0xFF6600,
|
||||
EMBED_COLOR_INFO: parseInt(process.env.EMBED_COLOR_INFO) || 0x1e2124
|
||||
EMBED_COLOR_INFO: parseInt(process.env.EMBED_COLOR_INFO) || 0x1e2124,
|
||||
STAFF_CATEGORIES: (() => {
|
||||
const raw = process.env.STAFF_CATEGORIES;
|
||||
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 categoryId = seg.slice(idx + 1).trim();
|
||||
if (userId && categoryId) map.set(userId, categoryId);
|
||||
}
|
||||
return map;
|
||||
})(),
|
||||
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,
|
||||
UNCLAIMED_CATEGORY_ID: process.env.UNCLAIMED_CATEGORY_ID || null
|
||||
};
|
||||
|
||||
/** Ticket category tags for /tag set – [emoji] [label] in dropdown; priority emoji always first in channel name, then tag emoji. */
|
||||
|
||||
Reference in New Issue
Block a user