diff options
author | WlodekM <[email protected]> | 2024-11-30 11:19:22 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-11-30 11:19:22 +0200 |
commit | 9d553a0e20011fbcf19ecada6541009e766943d9 (patch) | |
tree | 66b4e9d5574df39204c1e55858b4764bd0ece552 /index.js | |
parent | 2fb9a1cae1e2b2dc59f529e46965719367f53964 (diff) |
use cuid2
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js index 6c17622..400cec5 100644 --- a/index.js +++ b/index.js @@ -3,9 +3,11 @@ import { getRandomInt } from "./lib.js"; import { profanity } from "@2toad/profanity"; import { commands } from "./commands.js"; import * as accounts from "./accounts.js"; -import cuid from "cuid"; +import cuid2 from "@paralleldrive/cuid2"; import fs from "fs"; +const cuid = cuid2.init() + const server = { config: JSON.parse(String(fs.readFileSync("config.json"))), channels: ["home", "off-topic", "randomness"], |