mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
fix use command by making the activation string undefined on normal alias use
This commit is contained in:
@@ -106,7 +106,7 @@ async function handleChatMessage(
|
||||
|
||||
type selectedCommand = {
|
||||
cmd: Command;
|
||||
activation: string;
|
||||
activation?: string;
|
||||
isitem: boolean;
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ function selectCommand(message: string): selectedCommand | false {
|
||||
if (normalcmd)
|
||||
return {
|
||||
cmd: normalcmd,
|
||||
activation: commandPrefix + commandSelector,
|
||||
activation: undefined,
|
||||
isitem: normalcmd instanceof Item,
|
||||
};
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user