main.ts aktualisiert

This commit is contained in:
Akiru 2024-01-25 09:01:23 +00:00
parent 128c4312d4
commit 29161fa58a
1 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,9 @@ import { ConsoleHandler } from "std/log/handlers.ts";
import { LevelName, setup } from "std/log/mod.ts"; import { LevelName, setup } from "std/log/mod.ts";
import { serveUi } from "./api/mod.ts"; import { serveUi } from "./api/mod.ts";
import { runAllTasks } from "./app/mod.ts"; import { runAllTasks } from "./app/mod.ts";
import { runBot } from "./bot/mod.ts"; // runbot shouldn't be needed for webhooks?
// import { runBot } from "./bot/mod.ts";
import "./bot/mod.ts";
const logLevel = Deno.env.get("LOG_LEVEL")?.toUpperCase() as LevelName ?? "INFO"; const logLevel = Deno.env.get("LOG_LEVEL")?.toUpperCase() as LevelName ?? "INFO";
@ -20,7 +22,8 @@ setup({
// run parts of the app // run parts of the app
await Promise.all([ await Promise.all([
runBot(), // runbot shouldn't be needed for webhooks?
// runBot(),
runAllTasks(), runAllTasks(),
serveUi(), serveUi(),
]); ]);