2022-06-01 22:30:34 +00:00
|
|
|
import "https://deno.land/x/dotenv@v3.2.0/load.ts";
|
|
|
|
|
2024-04-28 12:32:04 +00:00
|
|
|
export * as cbor from "https://deno.land/x/cbor@v1.5.9/index.js"
|
2022-06-01 22:30:34 +00:00
|
|
|
export * as log from "https://deno.land/std@0.136.0/log/mod.ts";
|
|
|
|
export { crypto } from "https://deno.land/std@0.136.0/crypto/mod.ts";
|
2022-06-03 12:36:34 +00:00
|
|
|
export { EventEmitter } from "./events.ts";
|
2022-06-01 22:30:34 +00:00
|
|
|
import "https://deno.land/x/dotenv@v3.2.0/load.ts";
|
|
|
|
export const toHexString = (bytes: Uint8Array) =>
|
|
|
|
bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
|
|
|
|
|
|
|
|
export const config = {
|
|
|
|
ops: Deno.env.get("OPS") ? JSON.parse(Deno.env.get("OPS")!) : [],
|
|
|
|
port: +Deno.env.get("PORT")!,
|
|
|
|
hash: Deno.env.get("HASH"),
|
2022-06-03 12:36:34 +00:00
|
|
|
onlineMode: Deno.env.get("ONLINEMODE") == "true",
|
2022-07-14 13:26:27 +00:00
|
|
|
main: Deno.env.get("MAIN") || "main",
|
2022-11-13 15:19:56 +00:00
|
|
|
maxUsers: +(Deno.env.get("USERS") || 24) > 255 ? 255 : +(Deno.env.get("USERS") || 24),
|
|
|
|
software: Deno.env.get("SOFTWARE") || "Custom Cla66ic",
|
|
|
|
name: Deno.env.get("NAME") || "Cla66ic Server"
|
2022-06-01 22:30:34 +00:00
|
|
|
};
|