mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 15:26:58 +01:00
improved cheer argument parsing, minor bugfixes
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user