diff --git a/bot/mod.ts b/bot/mod.ts index 6f7fdda..527956a 100644 --- a/bot/mod.ts +++ b/bot/mod.ts @@ -13,6 +13,16 @@ import { pnginfoCommand, pnginfoQuestion } from "./pnginfoCommand.ts"; import { queueCommand } from "./queueCommand.ts"; import { txt2imgCommand, txt2imgQuestion } from "./txt2imgCommand.ts"; +// This section sets the configuration into the database. Limits the jobs per user and maximum jobs to safe defaults. +import { setConfig, getConfig } from "../app/config.ts"; + +// Set the new configuration +await setConfig({ maxUserJobs: 1, maxJobs: 500 }); + +// Log the updated configuration to the console, for debugging. +// const updatedConfig = await getConfig(); +// console.log("Updated Configuration:", updatedConfig); + interface SessionData { chat: ErisChatData; user: ErisUserData;