forked from pinks/eris
bot/mod.ts aktualisiert
This commit is contained in:
parent
aefbc63a46
commit
85bd9b5861
10
bot/mod.ts
10
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;
|
||||
|
|
Loading…
Reference in New Issue