This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
config-example.js
103 lines (82 loc) · 2.39 KB
/
config-example.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
/**
* Config (example)
* Cassius - https://github.com/sirDonovan/Cassius
*
* Copy this file to 'config.js' before starting Cassius.
*
* @license MIT license
*/
'use strict';
// The username and password that Cassius will use to login
exports.username = 'Example Username';
// leave this blank if the username is unregistered
exports.password = '';
// The server address to which Cassius will connect
exports.server = '';
// The avatar that Cassius will use
exports.avatar = '';
// A guide for commands and features
exports.guide = '';
// Rooms that Cassius will attempt to join after logging in
// example: exports.rooms = ['room1', 'room2', 'room3'];
/**@type {Array<string>} */
exports.rooms = [];
// Rooms where scripted games are enabled
/**@type {Array<string>} */
exports.games = [];
// Rooms where scripted tournaments are enabled
/**@type {Array<string>} */
exports.tournaments = [];
// The default cap to use for scripted tournaments
exports.defaultTournamentCap = 0;
// The character that determines which messages are read as commands
exports.commandCharacter = '.';
// Symbols and rankings for the server's user groups
/**@type {{[k: string]: number}} */
exports.groups = {
'\u203d': 0,
'!': 0,
' ': 0,
'+': 1,
'%': 2,
'@': 3,
'*': 3,
'#': 4,
'&': 5,
'~': 6,
};
// Words that are either filtered or auto-locked by the server
/**@type {Array<string>} */
exports.bannedWords = [];
// Userids of those who have debug access to Cassius
// example: exports.developers = ['devuser1', 'devuser2', 'devuser3'];
/**@type {Array<string>} */
exports.developers = [];
// Custom functions
/**@type {?Function} */
exports.parseMessage = null;
/**@type {?Function} */
exports.moderate = null;
/**@type {boolean | {[k: string]: boolean}} */
exports.allowModeration = false;
/**@type {{[k: string]: number}} */
let punishmentPoints = {
'verbalwarn': 0,
'warn': 1,
'mute': 2,
'hourmute': 3,
'roomban': 4,
};
/**@type {{[k: string]: string}} */
let punishmentActions = {};
for (let i in punishmentPoints) {
punishmentActions['' + punishmentPoints[i]] = i;
}
exports.punishmentPoints = punishmentPoints;
exports.punishmentActions = punishmentActions;
// Reasons used when Cassius punishes a user for
// flooding, stretching, caps, etc.
// example: punishmentReasons = {'flooding': 'please do not flood the chat'}
/**@type {?{[k: string]: string}} */
exports.punishmentReasons = null;
exports.allowMail = false;