mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 23:01:38 +01:00
remove ! from args
This commit is contained in:
@@ -10,7 +10,7 @@ export default function parseCommandArgs(input: string, specialAlias?: string) {
|
||||
nice = input.toLowerCase().slice(commandPrefix.length).trim();
|
||||
sliceLength = nice.startsWith('use') ? 2 : 1;
|
||||
}
|
||||
return nice.split(' ').slice(sliceLength);
|
||||
return nice.split(' ').slice(sliceLength).map(a => a.replaceAll(/!/gi, ''));
|
||||
};
|
||||
|
||||
export function parseCheerArgs(input: string) {
|
||||
|
||||
Reference in New Issue
Block a user