diff options
Diffstat (limited to 'user.ts')
-rw-r--r-- | user.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/user.ts b/user.ts index 26d7ebb..910e8a4 100644 --- a/user.ts +++ b/user.ts @@ -1,12 +1,14 @@ // because why not make *more files import { getRandomInt } from "./lib.js"; -import cuid from "cuid"; +import cuid2 from "@paralleldrive/cuid2"; import type { WebSocket } from 'ws' import type { IncomingMessage } from "node:http"; import type Server from "./server.ts"; import Timespamp from "./timestamp.ts"; +const cuid = cuid2.init() + export default class User { id: string = cuid(); username: string; |