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

19 lines
392 B
TypeScript

import "https://deno.land/std@0.201.0/dotenv/load.ts";
import { handlers, setup } from "std/log";
import { runAllTasks } from "./app/mod.ts";
import { bot } from "./bot/mod.ts";
setup({
handlers: {
console: new handlers.ConsoleHandler("DEBUG"),
},
loggers: {
default: { level: "DEBUG", handlers: ["console"] },
},
});
await Promise.all([
bot.start(),
runAllTasks(),
]);