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:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user