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 = {
|
type selectedCommand = {
|
||||||
cmd: Command;
|
cmd: Command;
|
||||||
activation: string;
|
activation?: string;
|
||||||
isitem: boolean;
|
isitem: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ function selectCommand(message: string): selectedCommand | false {
|
|||||||
if (normalcmd)
|
if (normalcmd)
|
||||||
return {
|
return {
|
||||||
cmd: normalcmd,
|
cmd: normalcmd,
|
||||||
activation: commandPrefix + commandSelector,
|
activation: undefined,
|
||||||
isitem: normalcmd instanceof Item,
|
isitem: normalcmd instanceof Item,
|
||||||
};
|
};
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user