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

BIIIIIG change here: NESTED ROLLS :D

Also, start the reorganization of artigen to support nesting better, make smaller more readable files, and better named functions
This commit is contained in:
Ean Milligan
2025-05-03 07:51:12 -04:00
parent bdec5e7850
commit 03a2acc386
10 changed files with 461 additions and 328 deletions

View File

@@ -78,7 +78,7 @@ export const apiRoll = async (query: Map<string, string>, apiUserid: bigint): Pr
}
// Clip off the leading prefix. API calls must be formatted with a prefix at the start to match how commands are sent in Discord
rollCmd = rollCmd.substring(rollCmd.indexOf(config.prefix) + 2).replace(/%20/g, ' ');
rollCmd = rollCmd.replace(/%20/g, ' ').trim();
const modifiers: RollModifiers = {
noDetails: query.has('nd'),