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

removed [[r shorthand from report command, add [[r and [[roll as aliases to the roll command

This commit is contained in:
Ean Milligan
2025-05-03 22:02:15 -04:00
parent fafaee67b3
commit 0b864b0f21
2 changed files with 15 additions and 3 deletions

View File

@@ -59,10 +59,18 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
return;
}
let rollCmd = message.content.startsWith(`${config.prefix}r`) ? args.join(' ') : message.content;
if (!rollCmd.includes(config.prefix)) {
rollCmd = `${config.prefix}${rollCmd}`;
}
if (!rollCmd.includes(config.postfix)) {
rollCmd = `${rollCmd}${config.postfix}`;
}
sendRollRequest({
apiRoll: false,
dd: { myResponse: m, originalMessage: message },
rollCmd: message.content,
rollCmd,
modifiers,
originalCommand,
});