summary refs log tree commit diff
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-11-08 12:18:16 +0200
committerWlodekM <[email protected]>2024-11-08 12:18:16 +0200
commit73721f6424373863741d8ee01a1c4682755c1c6c (patch)
tree23c800c6cba46130b0d7e24b7a26feeea72a0bf6
parentc2963bc31160d41701399c6d3816139f9326ec83 (diff)
ini config (wip)
-rw-r--r--config.ini34
-rw-r--r--package.json1
-rw-r--r--pnpm-lock.yaml106
3 files changed, 141 insertions, 0 deletions
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/[email protected]':
+    resolution: {integrity: sha512-d3kAz00+scjh3r1m8h3AHt49mBPWiyPhzOwX1sw8dwt15OrG/SCYw3ne/hFnxb4sEOuaMTBCFnHjVck5VVTipQ==}
+    engines: {node: '>=12'}
+
+  '@types/[email protected]':
+    resolution: {integrity: sha512-KmQxSBgVWCl6RSuerlLGZlIWfdxkKqat0nxN61+qu4y1KDn0Ll3j7v1Pl8GnaL3a/U6GGWVTJh75ap62kR1E8Q==}
+
+  '@types/[email protected]':
+    resolution: {integrity: sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg==}
+
+  '@types/[email protected]':
+    resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==}
+
+  [email protected]:
+    resolution: {integrity: sha512-br5QygTEL/TwB4uQOb96Ky22j4Gq2WxWH/8Oqv20fk5HagwKXo/akB+LiYgSfzexCt6kkcUaVm+bKiPl71xPvw==}
+
+  [email protected]:
+    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.
+
+  [email protected]:
+    resolution: {integrity: sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==}
+    engines: {node: ^18.17.0 || >=20.5.0}
+
+  [email protected]:
+    resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}
+    engines: {node: '>=14'}
+    hasBin: true
+
+  [email protected]:
+    resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
+
+  [email protected]:
+    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/[email protected]': {}
+
+  '@types/[email protected]':
+    dependencies:
+      bun-types: 1.1.34
+
+  '@types/[email protected]':
+    dependencies:
+      undici-types: 5.26.5
+
+  '@types/[email protected]':
+    dependencies:
+      '@types/node': 20.12.14
+
+  [email protected]:
+    dependencies:
+      '@types/node': 20.12.14
+      '@types/ws': 8.5.13
+
+  [email protected]: {}
+
+  [email protected]: {}
+
+  [email protected]: {}
+
+  [email protected]: {}
+
+  [email protected]: {}