improved cheer argument parsing, minor bugfixes

This commit is contained in:
2025-07-07 15:56:01 +02:00
parent afd7dda332
commit 73d281c6c6
5 changed files with 18 additions and 10 deletions

View File

@@ -7,3 +7,10 @@ export default function parseCommandArgs(input: string) {
const b = a.trim().split(' ').slice(sliceLength);
return b;
};
export function parseCheerArgs(input: string) {
const a = input.slice(commandPrefix.length);
const sliceLength = a.startsWith('testcheer') ? 2 : 0;
const b = a.trim().split(' ').slice(sliceLength);
return b;
};