blob: a88cc5445e26ba6f50a4b2ffc3deb798c15e619a [file] [log] [blame]
import runServer from "./api/index.js";
import client from "./utils/client.js";
import config from "./config/main.json" assert { type: "json" };
import register from "./utils/commandRegistration/register.js";
import { record as recordPerformance } from "./utils/performanceTesting/record.js";
client.on("ready", () => {
console.log(`Logged in as ${client.user!.tag}!`);
register();
runServer(client);
});
process.on("unhandledRejection", (err) => { console.error(err) });
process.on("uncaughtException", (err) => { console.error(err) });
await client.login(config.enableDevelopment ? config.developmentToken : config.token)
await recordPerformance();
import { getCommandMentionByName} from "./utils/getCommandMentionByName.js";
console.log(await getCommandMentionByName("nucleus/premium"))