From 897fe80533b84061d7fd01ec421c654a85961341 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Sat, 3 May 2025 22:30:43 -0400 Subject: [PATCH] comments --- mod.ts | 2 +- src/commands/roll.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index f3146e0..260a62e 100644 --- a/mod.ts +++ b/mod.ts @@ -23,7 +23,7 @@ import utils from 'utils/utils.ts'; // Extend the BigInt prototype to support JSON.stringify interface BigIntX extends BigInt { - /** Convert to BigInt to string form in JSON.stringify */ + // Convert to BigInt to string form in JSON.stringify toJSON: () => string; } (BigInt.prototype as BigIntX).toJSON = function () { diff --git a/src/commands/roll.ts b/src/commands/roll.ts index 6aa23bd..70c5adc 100644 --- a/src/commands/roll.ts +++ b/src/commands/roll.ts @@ -60,6 +60,8 @@ export const roll = async (message: DiscordenoMessage, args: string[], command: } let rollCmd = message.content.startsWith(`${config.prefix}r`) ? args.join(' ') : message.content; + + // Try to ensure the roll is wrapped if (!rollCmd.includes(config.prefix)) { rollCmd = `${config.prefix}${rollCmd}`; }