From 73721f6424373863741d8ee01a1c4682755c1c6c Mon Sep 17 00:00:00 2001 From: WlodekM Date: Fri, 8 Nov 2024 12:18:16 +0200 Subject: ini config (wip) --- config.ini | 34 ++++++++++++++++++ package.json | 1 + pnpm-lock.yaml | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 config.ini create mode 100644 pnpm-lock.yaml diff --git a/config.ini b/config.ini new file mode 100644 index 0000000..ffd91e1 --- /dev/null +++ b/config.ini @@ -0,0 +1,34 @@ +; wsChat v1.3.1 configuration file + +[server] +port = 9933 +name = "wsChat server" +; Avaliable replacers: +; * $(serverName)$ - the name of the server +; * $(userCount)$ - the current user count +; * $(max)$ - the max ammount of users +motd = "Welcome to $(serverName)$\nRun /help to see a list of commands or run /register to make an account" +fullMessage = "Sorry, but the server is full right now, come back later" +max = 20 + +[accounts] +owner = "WlodekM" +saveIP = false +requireLogin = true +annonFormat = "Anonymous#[num]" + +[profanity] +filter = true +removeWords = ["butt", "arse", "balls", "dick"] +addWords = ["kys"] + +[channels] +channels = ["home", "off-topic", "random", "safe"] + +[channel-home] +; You can set settings like profanity for specific channels +profanity = true ; true = dont filter, false = do filter + +[channel-off-topic] +; You can also set a slowmode +slowmode = 5 ; Time in seconds diff --git a/package.json b/package.json index 62fed1c..06f596a 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "dependencies": { "@2toad/profanity": "^2.2.0", "cuid": "^3.0.0", + "ini": "^5.0.0", "ws": "^8.17.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..3a57313 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,106 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@2toad/profanity': + specifier: ^2.2.0 + version: 2.5.0 + cuid: + specifier: ^3.0.0 + version: 3.0.0 + ini: + specifier: ^5.0.0 + version: 5.0.0 + ws: + specifier: ^8.17.1 + version: 8.18.0 + devDependencies: + '@types/bun': + specifier: latest + version: 1.1.13 + prettier: + specifier: 3.3.3 + version: 3.3.3 + +packages: + + '@2toad/profanity@2.5.0': + resolution: {integrity: sha512-d3kAz00+scjh3r1m8h3AHt49mBPWiyPhzOwX1sw8dwt15OrG/SCYw3ne/hFnxb4sEOuaMTBCFnHjVck5VVTipQ==} + engines: {node: '>=12'} + + '@types/bun@1.1.13': + resolution: {integrity: sha512-KmQxSBgVWCl6RSuerlLGZlIWfdxkKqat0nxN61+qu4y1KDn0Ll3j7v1Pl8GnaL3a/U6GGWVTJh75ap62kR1E8Q==} + + '@types/node@20.12.14': + resolution: {integrity: sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg==} + + '@types/ws@8.5.13': + resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==} + + bun-types@1.1.34: + resolution: {integrity: sha512-br5QygTEL/TwB4uQOb96Ky22j4Gq2WxWH/8Oqv20fk5HagwKXo/akB+LiYgSfzexCt6kkcUaVm+bKiPl71xPvw==} + + cuid@3.0.0: + resolution: {integrity: sha512-WZYYkHdIDnaxdeP8Misq3Lah5vFjJwGuItJuV+tvMafosMzw0nF297T7mrm8IOWiPJkV6gc7sa8pzx27+w25Zg==} + deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. + + ini@5.0.0: + resolution: {integrity: sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==} + engines: {node: ^18.17.0 || >=20.5.0} + + prettier@3.3.3: + resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + engines: {node: '>=14'} + hasBin: true + + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + +snapshots: + + '@2toad/profanity@2.5.0': {} + + '@types/bun@1.1.13': + dependencies: + bun-types: 1.1.34 + + '@types/node@20.12.14': + dependencies: + undici-types: 5.26.5 + + '@types/ws@8.5.13': + dependencies: + '@types/node': 20.12.14 + + bun-types@1.1.34: + dependencies: + '@types/node': 20.12.14 + '@types/ws': 8.5.13 + + cuid@3.0.0: {} + + ini@5.0.0: {} + + prettier@3.3.3: {} + + undici-types@5.26.5: {} + + ws@8.18.0: {} -- cgit 1.4.1-2-gfad0