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

19 lines
390 B
TypeScript

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