forked from tauri-apps/tauri-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
64 lines (55 loc) · 1.48 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
export const DEV_MODE = process.env.NODE_ENV !== 'production';
export const GUILD_ID = DEV_MODE
? process.env.DEV_GUILD_ID
: '699366121593372752';
export const DISCORD_TOKEN = process.env.DISCORD_TOKEN;
export const TAURI_BLUE = 0x754BAB;
// people
const ADMIN_ROLES = DEV_MODE
? [process.env.DEV_ADMIN_ROLE]
: [
// admin
'742491247481978901',
// core
'738873387908333610'
];
export const BOT_DEVS = [
// Thijs
'361818385811505153',
];
// list of roles/user IDs other than the creator allowed to modify threads
export const THREAD_ADMIN_IDS = [...ADMIN_ROLES, ...BOT_DEVS];
// channels that will be automatically threaded when a message is created
export const AUTO_THREAD_CHANNELS = DEV_MODE
? [process.env.DEV_HELP_CHANNEL]
: [
// #help
'699366419485163660',
];
export const REACTION_ROLE: {
emojiName: string;
emojiId: string;
roleId: string;
description: string;
}[] = DEV_MODE
? [
{
emojiName: 'sausageroll',
emojiId: '995712110925451324',
roleId: process.env.DEV_REACTION_ROLE,
description:
'Join the conversation in the contributors channels (you can still view without this role)',
},
]
: [
{
emojiName: 'tauri',
emojiId: '876938722266972210',
roleId: '986176820187631616',
description:
'Join the conversation in the contributors channels (you can still view without this role)',
},
];
export const REACTION_ROLE_CHANNEL = DEV_MODE
? process.env.DEV_REACTION_ROLE_CHANNEL
: '616210923354456064';