From ebbc917ed3ce56a665dbec3f2ed86bbb59b5413b Mon Sep 17 00:00:00 2001 From: Joel Jolly <128782382+withinJoel@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:49:44 +0530 Subject: [PATCH] Update Commands.js --- Modules/Commands.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Commands.js b/Modules/Commands.js index 6060ab0..81a184b 100644 --- a/Modules/Commands.js +++ b/Modules/Commands.js @@ -37,8 +37,7 @@ function runCmd(command, inMemory, fromInput) { } else if (commandName === "truthordare") { truthOrDare(); } else if (commandName.includes("whatis:")) { - const data = commandName.trim().replace(/^whatis:\b\s*/i, ''); - whatIsCommand(data); + whatIsCommand(commandName); } else if (commandName === "rolldice") { rollDice(); } else if (commandName === "headsortails") {