Update and rename config.json to config.js

Add quotas
This commit is contained in:
wolfy01 2020-04-07 02:44:34 -04:00 committed by GitHub
parent d2f216a974
commit 1850aaa68a
2 changed files with 34 additions and 10 deletions

34
src/db/config.js Normal file
View File

@ -0,0 +1,34 @@
module.exports = Object.seal({
"port": "8080",
"motd": "You agree to read this message.",
"_id_PrivateKey": "boppity",
"defaultUsername": "Anonymous",
"defaultRoomColor": "#3b5054",
"defaultLobbyColor": "#19b4b9",
"defaultLobbyColor2": "#801014",
"adminpass": "adminpass_h4gKJCX2",
"quotas":{
"chat":{
"amount": 4,
"time": 4000
},
"name":{
"amount": 30,
"time": 30 * 60000
},
"room":{
"time": 500
},
"cursor":{
"time": 16
},
"kickban":{
"amount": 2,
"time": 1000
},
"crowned_chat":{
"amount": 10,
"time": 4000
}
}
})

View File

@ -1,10 +0,0 @@
{
"port": "3000",
"motd": "You agree to read this message.",
"_id_PrivateKey": "boppity",
"defaultUsername": "Anonymous",
"defaultRoomColor": "#3b5054",
"defaultLobbyColor": "#19b4b9",
"defaultLobbyColor2": "#801014",
"adminpass": "adminpass"
}