forked from pinks/eris
1
0
Fork 0

webhooks #1

Merged
Akiru merged 12 commits from webhooks into main 2024-01-26 13:20:20 +00:00
1 changed files with 10 additions and 0 deletions
Showing only changes of commit 85bd9b5861 - Show all commits

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;