all repos — stealth-developers @ 960f8f74d3c05db34f143b02ffb9180777ed6380

src/index.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
import config from "./config.ts";
import logger from "./utils/logging.ts";

import client from "./bot.ts";

async function main() {
	await client.login(config.data.discord.token);
}

main();

process.on("unhandledRejection", (error) => {
	logger.error(error, "unhandled promise rejection:");
});

process.on("uncaughtException", (error) => {
	logger.error(error, "uncaught exception");
	console.error(error);
});