-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js.template
154 lines (133 loc) · 3.88 KB
/
config.js.template
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
/**
* INSTRUCTIONS
* 1. Copy this file to `config.js`.
* 2. All Discord IDs for your bot operators.
* 3. Delete this comment.
*/
/**
* DO NOT COMMIT THIS FILE ANYWHERE PUBLIC because it contains sensitive data.
*
* The filename config.js is added to the `.gitignore` file for this repo. Do
* not undo that.
*/
const config = {
// Authorized bot operators.
auth: {
// Bot Owner, level 10 by default. A Discord User ID.
ownerID: '', // Name:
// Bot Admins, level 9 by default. Array of Discord User ID strings.
admins: [''], // Names:
// Bot Support, level 8 by default. Array of Discord User ID strings.
support: [''], // Names:
},
// Prefix for bot commands.
prefix: '!',
/**
* Colors which can be referenced in member-specific content.
* Everything uses `default` unless overridedn.
*/
colors: {
// Light Blue
default: 3759820,
},
// Indentifier to distinguish log entries in the aggregated log files.
// Key: 0 = dev, 1 = staging, 2 = production
instance: 0,
// Logging Levels
logLevels: {
// Displays verbose info about programmatic actions.
debug: false,
// Displays each command executed, including arguments and the callee.
// Example: CMD help(["link"]) PeterPan(Level 0)
cmd: true,
// Displays completed loading and init actions.
// Example: READY Loaded a total of 3 events.
ready: true,
// The following three standard levels should generally be enabled.
log: true,
warn: true,
error: true,
},
/**
* Master list of permissions and the logic to verify them.
*/
permLevels: [
{
// This is the lowest permisison level: Users without a role.
// No check needed for this role.
level: 0,
name: "User",
check: () => true
},
{
level: 4,
name: "Server Owner",
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
},
{
// Access to non-destructive commands.
level: 8,
name: "Bot Support",
// Verify the user is listed in the bot config `support` list.
check: (message) => config.auth.support.includes(message.author.id)
},
{
// Full access.
level: 9,
name: "Bot Admin",
// Verify the user is listed in the bot config `admins` list.
check: (message) => config.auth.admins.includes(message.author.id)
},
{
// Full access.
level: 10,
name: "Bot Owner",
// Verify the user is the bot owner.
check: (message) => config.auth.ownerID === message.author.id
}
],
/**
* List of channels referenced by bot commands.
*/
channels: {
apidev: '', // #api-dev - for bot operators.
},
/**
* Hash map for the proper display name of each faction.
* e.g. `eq1: 'Equilibrium'`
*/
factionList: {
faction1: '',
},
/**
* Channels in which the bot should be silent.
*/
blacklistedChannels: [''],
/**
* Discord Giveaway servers.
*/
discordServers: [
'https://discord.gg/WByjMmG', // R3x
'https://discord.gg/4smdYW7', // Duck Pond
'https://discord.gg/NJudqNg', // Torn City Park
'https://discord.gg/wnwr8gT', // Mount Olympus
'https://discord.gg/vzn5PxM', // TORN Fexellent Server
'https://discord.gg/sfrp5hjTfd', // Torn City Lounge
'https://discord.gg/wWQjq4XWJk', // Torn Zero
'https://discord.gg/UWfPXsGs', // The Rifle Company
],
/**
* Faction traders config.
*/
tradeConfig: {
price_url: 'https://eq.kastang.com/tce',
traders: {
'Triple_Kill' : {
'trade_url' : 'https://www.torn.com/trade.php#step=start&userID=1166266/',
'price_url' : 'https://www.tornexchange.com/prices/Triple_Kill/',
'forum_url' : 'https://www.torn.com/forums.php#p=threads&f=10&t=16219275&b=0&a=0',
},
},
},
};
module.exports = config;