1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

reorganize worker management and queue management to be better

This commit is contained in:
Ean Milligan
2025-05-01 23:19:08 -04:00
parent 6ab0923d71
commit 7053c25719
10 changed files with 284 additions and 231 deletions

View File

@@ -4,7 +4,7 @@ import { log, LogTypes as LT } from '@Log4Deno';
import config from '~config';
import { DEVMODE } from '~flags';
import { queueRoll } from 'artigen/managers/queueManager.ts';
import { sendRollRequest } from 'artigen/managers/queueManager.ts';
import dbClient from 'db/client.ts';
import { queries } from 'db/common.ts';
@@ -52,9 +52,9 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
// Rejoin all of the args and send it into the solver, if solver returns a falsy item, an error object will be substituted in
const rollCmd = message.content.substring(config.prefix.length);
queueRoll({
sendRollRequest({
apiRoll: false,
dd: { m, message },
dd: { myResponse: m, originalMessage: message },
rollCmd,
modifiers,
originalCommand,