forked from dassschaf/nextcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings-sample.js
81 lines (59 loc) · 2.27 KB
/
settings-sample.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
const Settings = {
// Trackmania server settings
trackmania: {
// the server *has* to run on localhost!
// server port
port: 5555,
// Authentication details for SuperAdmin access
login: 'SuperAdmin',
password: 'SuperAdmin',
// Game: TM2020 or TM2
game: 'TM2020',
// The login of the server at the master server, look it up on the player page in doubt
server_login: 'blah',
// The matchsettings file the server is started with
matchsettings_file: 'set.txt'
},
usedDatabase: 'mongodb', // or mysql...
// you only need to enter the details about the database you actually are going to use.
// MongoDB settings
mongoDb: {
// Connection URI
uri: "mongodb://localhost/?poolSize=20&w=majority",
// Database name
database: 'nextcontrol'
},
// MySQL database settings
mySql: {
// host and port
host: "localhost",
port: 3306,
// user and password
user: "root",
password: "password",
// database name
database: "nextcontrol"
},
// List of disabled plugins by their name
disabledPlugins: ['Sample Plugin'],
// List of administrators by their logins
admins: [
'your login here'
],
// If you're using Discord integration plugin, set your settings here
// If you don't want to use Discord, set "Discord Bot Integration" in the disabledPlugins array
discord: {
// Token of your Discord Bot, grab it at https://discord.com/developers
token: "super-secret-token",
// Logging channel ID, logs anything from the server so it's not meant for everyone.
// Leave an empty field ( "" ) if you don't want to enable logs
logChannel: "0123456789",
// Enables or disable chat logging to Discord, if enabled all messages sent in TM will be logged on the log Channel set above
logChat: true,
// Cross-chat channel ID, Allows to link together the server chat and the Discord chat.
// The messages received on Discord will be sent on TM and vice versa
// Leave an empty field ( "" ) if you don't want to enable cross-chat
chatChannel: "0123456789"
}
}
export { Settings }