forked from pinks/eris
1
0
Fork 0
nyx/main.ts

19 lines
392 B
TypeScript
Raw Normal View History

2023-09-04 16:55:48 +00:00
import "https://deno.land/std@0.201.0/dotenv/load.ts";
2023-09-24 13:08:35 +00:00
import { handlers, setup } from "std/log";
import { runAllTasks } from "./app/mod.ts";
2023-09-24 13:08:35 +00:00
import { bot } from "./bot/mod.ts";
2023-09-24 13:08:35 +00:00
setup({
handlers: {
2023-09-24 13:08:35 +00:00
console: new handlers.ConsoleHandler("DEBUG"),
},
loggers: {
2023-09-10 18:56:17 +00:00
default: { level: "DEBUG", handlers: ["console"] },
},
});
2023-09-03 19:06:20 +00:00
2023-09-04 16:55:48 +00:00
await Promise.all([
bot.start(),
2023-09-10 18:56:17 +00:00
runAllTasks(),
2023-09-03 19:06:20 +00:00
]);