-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.ts
104 lines (80 loc) · 2.1 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
export const DEV_MODE = process.env.NODE_ENV !== 'production';
export const TEST_GUILD_ID = process.env.TEST_GUILD_ID ?? '918887934822858802';
export const DISCORD_TOKEN = process.env.DISCORD_TOKEN;
export const SVELTE_ORANGE = 0xff3e00;
export const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
// #region people
const ADMIN_ROLES = [
// Moderators role in main server
// '919214972557484073',
// // Maintainers role
// '571775211431526410',
// // Admins role
// '476141440091815947',
// Threadlords
'949258457352114176',
];
// For use in dev server
const TEST_ADMIN_ROLES = ['918888136581476402'];
/**
* List of roles/user IDs allowed to delete tags even if they're not the author.
*/
export const TAG_DEL_PERMITTED_IDS = DEV_MODE ? TEST_ADMIN_ROLES : ADMIN_ROLES;
/**
* List of roles/user IDs allowed to create tags.
*/
export const TAG_CREATE_PERMITTED_IDS = DEV_MODE
? TEST_ADMIN_ROLES
: ADMIN_ROLES;
export const BOT_DEVS = [
// cirilla
'339731096793251854',
// GHOST
'282839711834177537',
];
/**
* List of roles/user IDs other than the creator allowed to modify threads.
*/
export const THREAD_ADMIN_IDS = [
...BOT_DEVS,
...(DEV_MODE ? TEST_ADMIN_ROLES : ADMIN_ROLES),
];
// #endregion
// #region channels
export const SOLVED_TAGS_MAP: Record<string, string> = DEV_MODE
? { '1023930215329697792': '1023931412933525554' }
: {
// Questions
'1023340103071965194': '1024301926952730636',
// Ecosystem
'1060332203571151019': '1060930530566217888',
};
export const HELP_CHANNELS = new Set(Object.keys(SOLVED_TAGS_MAP));
const COMMUNITY_CHANNELS = [
// Showcase
'479653552869081089',
// Resources
'837012201444999248',
// #library-announcements
'1060265526439456858',
];
export const LINK_ONLY_CHANNELS = DEV_MODE
? [
// #test-link-validation
'918915215368810566',
// #both-both-is-good
'919196322303725568',
]
: COMMUNITY_CHANNELS;
export const AUTO_THREAD_CHANNELS = DEV_MODE
? [
// #test-auto-thread
'918932662226386994',
// #both-both-is-good
'919196322303725568',
]
: [
...COMMUNITY_CHANNELS,
'640884695890133012', // jobs
];
// #endregion