From 2244bbce5ba98ee2e03368d41157ea75f76649a7 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Wed, 23 Jul 2025 21:48:25 +0100 Subject: [PATCH] remove @ symbols from command args so you can @qwerinope --- src/lib/parseCommandArgs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/parseCommandArgs.ts b/src/lib/parseCommandArgs.ts index 6ed9af3..4bf825d 100644 --- a/src/lib/parseCommandArgs.ts +++ b/src/lib/parseCommandArgs.ts @@ -2,13 +2,13 @@ import { commandPrefix } from ".."; /** Helper function to extract arguments from commands */ export default function parseCommandArgs(input: string) { - const nice = input.toLowerCase().slice(commandPrefix.length).trim(); + const nice = input.toLowerCase().slice(commandPrefix.length).trim().replace(/[@]/g, ''); const sliceLength = nice.startsWith('use') ? 2 : 1; return nice.split(' ').slice(sliceLength); }; export function parseCheerArgs(input: string) { - const nice = input.toLowerCase().trim(); + const nice = input.toLowerCase().trim().replace(/[@]/g, ''); // This is for the test command. Remove the command prefix, the command, the whitespace after and the amount of fake bits if (nice.startsWith(commandPrefix + 'testcheer')) return nice.slice(commandPrefix.length + 'testcheer'.length + 1).split(' ').slice(1);