revised readme, moved some stuff around

This commit is contained in:
2023-06-11 12:10:59 +00:00
parent 19c57ec156
commit a672409e4a
10 changed files with 610 additions and 45 deletions

31
config/config.json Normal file
View File

@@ -0,0 +1,31 @@
{
"certPath": "/app/cert/fullchain.pem",
"keyPath": "/app/cert/privkey.pem",
"port": 8080,
"updateInterval": 5000,
"apiUrl": "https://www.saltybet.com/state.json",
"events": {
"teamNamesChange": {
"emitEvent": "teamNamesChange",
"params": ["p1name", "p2name"]
},
"betAmountChange": {
"emitEvent": "betAmountChange",
"params": ["p1total", "p2total"]
},
"statusChange": {
"emitEvent": "statusChange",
"params": ["status"]
},
"alertChange": {
"emitEvent": "alertChange",
"params": ["alert"]
},
"remainingChange": {
"emitEvent": "remainingChange",
"params": ["remaining"]
}
}
}