- Füge neue Felder `host`, `port` und `database` zur Datenbankkonfiguration in `chatconfig.json` hinzu. - Implementiere eine Funktion im `update_config.sh`-Skript, um den `connectstring` zu parsen und die neuen Felder automatisch zu befüllen, falls sie fehlen. - Aktualisiere die `Database`-Klasse, um die neuen Konfigurationsparameter zu verwenden.
37 lines
797 B
JSON
Executable File
37 lines
797 B
JSON
Executable File
{
|
|
"server": {
|
|
"port": 1235
|
|
},
|
|
"database": {
|
|
"user": "yourpart",
|
|
"password": "r3EMWJ5p",
|
|
"connectstring": "tsschulz.de:1521/yourpart",
|
|
"host": "tsschulz.de",
|
|
"port": "1521",
|
|
"database": "yourpart"
|
|
},
|
|
"room-types": {
|
|
"0": "Standard",
|
|
"1": "Dice possible",
|
|
"2": "Poker possible",
|
|
"4": "Room will work with rounds",
|
|
"8": "protected"
|
|
},
|
|
"rooms": [
|
|
{
|
|
"name": "Halle",
|
|
"password": "",
|
|
"allowed": [],
|
|
"type": 0,
|
|
"roundlength": 0
|
|
},
|
|
{
|
|
"name": "Würfelglück",
|
|
"password": "",
|
|
"allowed": [],
|
|
"type": 5,
|
|
"roundlength": 20
|
|
}
|
|
]
|
|
}
|