From 1850aaa68a529399b97e790781bf5bd5b7f91c1d Mon Sep 17 00:00:00 2001 From: wolfy01 <45273698+wolfy01@users.noreply.github.com> Date: Tue, 7 Apr 2020 02:44:34 -0400 Subject: [PATCH] Update and rename config.json to config.js Add quotas --- src/db/config.js | 34 ++++++++++++++++++++++++++++++++++ src/db/config.json | 10 ---------- 2 files changed, 34 insertions(+), 10 deletions(-) create mode 100644 src/db/config.js delete mode 100644 src/db/config.json diff --git a/src/db/config.js b/src/db/config.js new file mode 100644 index 0000000..eeeb1e2 --- /dev/null +++ b/src/db/config.js @@ -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 + } + } +}) diff --git a/src/db/config.json b/src/db/config.json deleted file mode 100644 index ce8db5c..0000000 --- a/src/db/config.json +++ /dev/null @@ -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" -}