Skip to content

Commit 0f6b1d4

Browse files
committed
Bring back normal configuration
1 parent 4272336 commit 0f6b1d4

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ instances
44
credentials
55
maps
66
logs
7-
temp
8-
package-lock.json
9-
config/index.js
7+
temp

config/index.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
Copyright (C) 2022 Alexander Emanuelsson (alexemanuelol)
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
https://github.com/alexemanuelol/rustplusplus
18+
19+
*/
20+
21+
module.exports = {
22+
general: {
23+
language: process.env.RPP_LANGUAGE || 'en',
24+
pollingIntervalMs: process.env.RPP_POLLING_INTERVAL || 10000,
25+
showCallStackError: process.env.RPP_LOG_CALL_STACK || false,
26+
reconnectIntervalMs: process.env.RPP_RECONNECT_INTERVAL || 15000,
27+
},
28+
discord: {
29+
username: process.env.RPP_DISCORD_USERNAME || 'rustplusplus',
30+
clientId: process.env.RPP_DISCORD_CLIENT_ID || '',
31+
token: process.env.RPP_DISCORD_TOKEN || '',
32+
needAdminPrivileges: process.env.RPP_NEED_ADMIN_PRIVILEGES || true, /* If true, only admins can delete (server, switch..), manage credentials and reset a channel */
33+
}
34+
};

0 commit comments

Comments
 (0)