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

add comma totals decorator

This commit is contained in:
Ean Milligan
2025-04-29 18:02:51 -04:00
parent 861d1e00cd
commit b9c7fac984
6 changed files with 21 additions and 4 deletions

View File

@@ -25,8 +25,9 @@ export const getModifiers = (m: DiscordenoMessage, args: string[], command: stri
gmRoll: false,
gms: [],
order: '',
valid: false,
count: false,
commaTotals: false,
valid: false,
apiWarn: '',
};
@@ -99,6 +100,9 @@ export const getModifiers = (m: DiscordenoMessage, args: string[], command: stri
modifiers.order = args[i].toLowerCase()[0];
break;
case '-ct':
modifiers.commaTotals = true;
break;
default:
// Default case should not mess with the array
defaultCase = true;

View File

@@ -71,6 +71,11 @@ Available directions:
\`d\` - Descending (greatest to least)`,
inline: true,
},
{
name: '`-ct` - Comma Totals',
value: 'Adds commas to totals for readability',
inline: true,
},
],
},
],