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 "./discord.ts";
async function main() {
await client.login(config.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);
});
|