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