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

remove roll logging, never was used, update db notes in config.example

This commit is contained in:
Ean Milligan
2025-07-15 05:12:34 -04:00
parent b0401809c4
commit 6e71878d42
2 changed files with 1 additions and 10 deletions

View File

@@ -57,14 +57,6 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
// Return early if the modifiers were invalid
if (!modifiers.valid) {
m.edit(generateRollError('Modifiers invalid:', modifiers.error.name, modifiers.error.message)).catch((e) => utils.commonLoggers.messageEditError('roll.ts:50', m, e));
if (DEVMODE && config.logRolls) {
// If enabled, log rolls so we can verify the bots math
dbClient
.execute(queries.insertRollLogCmd(0, 1), [originalCommand, modifiers.error.name, m.id])
.catch((e) => utils.commonLoggers.dbError('roll.ts:57', 'insert into', e));
}
return;
}
let rollCmd = message.content.startsWith(`${config.prefix}r`) ? remainingArgs.join('') : `${command}${remainingArgs.join('')}`;