Trigger Fix.

This commit is contained in:
thedragonsinn
2023-10-09 15:57:37 +05:30
parent e8aa26d4f2
commit 29c18f5d30

View File

@@ -17,7 +17,7 @@ class Message(Msg):
@cached_property
def cmd(self) -> str | None:
raw_cmd = self.text_list[0]
cmd = raw_cmd.lstrip(Config.TRIGGER)
cmd = raw_cmd[1:]
return cmd if cmd in Config.CMD_DICT else None
@cached_property