Trigger Fix.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user