forked from pinks/eris
1
0
Fork 0

bot/mod.ts aktualisiert

This commit is contained in:
Akiru 2024-01-25 08:51:39 +00:00
parent aefbc63a46
commit 85bd9b5861
1 changed files with 10 additions and 0 deletions

View File

@ -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;