-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
160 lines (151 loc) · 4.27 KB
/
config.js
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/**
* Discord BOT and WEBHOOK tokens,
* SQL database credentials,
* and Redis credentials
* are located in .env (copy env.txt)
*/
module.exports = {
/**
* General
*/
name: 'Left4Craft',
color: {
success: 0x4CAF50, // for embeds
fail: 0xD65A49
},
ip: 'mc.left4craft.org',
port: 25565,
guild_id: '424571587413540874',
activities: ['Minecraft', 'on mc.left4craft.org', 'with nuclear launch codes', 'Minecraft on mc.left4craft.org'],
activity_types: ['PLAYING', 'PLAYING', 'PLAYING', 'PLAYING'],
cooldown: 3,// default (in seconds), can be different for each command
/**
* Logs
*/
debug: false,
log_dm: false,
log_general: true,
log_chan_id: '425382138037403658',
/**
* Basic bot features
*/
client_id: '425381177646383124',
welcome_chan_id: '424571587413540876',
poll_chan_id: '697485686688710786',
suggestion_chan_id: '734407921311416331',
count_chan_id: '779454172826697728',
subscription_roles: {
status: {
title: 'Status notifications',
description: 'Get mentioned when there is a status notification posted to <#701035082240229477>.\nTo prevent you from throwing your phone at a wall in the event that multiple servers go offline simultaneously, the notification service is limited to **1 ping per 5 minutes**.',
role: '701904205144653886',
id: 'status'
},
announcements: {
title: 'Minor announcements',
description: 'Get mentioned when there is an announcement that is important but doesn\'t warrant tagging everyone',
role: '730811314796101632',
id: 'announcements'
},
polls: {
title: 'Polls',
description: 'Get mentioned when there is a poll',
role: '734428253552640001',
id: 'polls'
}
},
/**
* Status
*/
status_update_interval: 60, // in seconds
status_cat_id: '697518406013812837',
status_page: 'https://status.left4craft.org',
status_page_pretty: 'status.left4craft.org',
/**
* Chat bridge
*/
chat_bridge_chan_id: '424870757860900865',
chat_webhook_id: '602334307503177729', // webhook token is in ENV
socialspy_chan_id: '828041424293331025',
admin_chan_id: '526562171472183296',
/**
* Punish sync
*/
update_punishment_interval: 60, // how often to check whether to mute / unmute people, in seconds
muted_channel_id: '587122816797769788',
support_channel_id: '424868800509509633',
litebans_base_url: 'https://www.left4craft.org/punishments/for/', // WITH trailing slash
/**
* Role sync
*/
rank_colors: {
'guest': '&7',
'user': '&e',
'user+': '&e',
'donor': '&b',
'patron': '&c',
'patron+': '&d',
'builder': '&2',
'hbuilder': '&2',
'helper': '&a',
'moderator': '&9',
'admin': '&3',
'owner': '&4'
},
in_game_ranks: {
'guest': '429026758692438038',
'user': '424866580141441026',
'user+': '424866910870437898',
'donor': '424867041426538496',
'patron': '426469168171319297',
'patron+': '424867110041288716',
'builder': '424867526481281024',
'hbuilder': '735124508339470436',
'helper': '424867726511570955',
'moderator': '424867915226021888',
'admin': '424868133967364096',
'owner': '424868296886583316'
},
admin_roles: ['admin', 'owner'], // due to lazy code, these MUST be the DISCORD role names (you'd think it'd get the Discord ID from the Minecraft rank name above but no)
staff_ranks: ['helper', 'moderator', 'admin', 'owner'],
special_ranks: {
'staff': '424867647381831690',
'muted': '587112191950585856',
'status_subscriber': '701904205144653886',
'announcements': '730811314796101632',
'polls': '734428253552640001'
},
code_expire_interval: 60, // how often to check for expired sync tokens, in seconds
// Links/websites
links: [{
name: 'Home',
url: 'https://www.left4craft.org',
pretty: 'www.left4craft.org'
},
{
name: 'Discord Server',
url: 'https://discord.left4craft.org',
pretty: 'discord.left4craft.org'
},
{
name: 'Shop / Donation Store',
url: 'https://www.left4craft.org/shop',
pretty: 'www.left4craft.org/shop'
},
{
name: 'Punishments',
url: 'https://www.left4craft.org/punishments',
pretty: 'www.left4craft.org/punishments'
},
{
name: 'Status',
url: 'https://status.left4craft.org',
pretty: 'status.left4craft.org'
}
],
yourls: {
name: 'left4.cf',
api: 'https://left4.cf/yourls-api.php', // WITHOUT trailing /
max_length: 50 // URLs sent through minecraft.chat longer than this will be shortened
}
};