From 9d553a0e20011fbcf19ecada6541009e766943d9 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 30 Nov 2024 11:19:22 +0200 Subject: use cuid2 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.js') 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"], -- cgit 1.4.1-2-gfad0