Revert last commit

This commit is contained in:
Kumi 2023-11-09 12:31:46 +01:00
parent 37a1e6a85c
commit 1b290c6b92
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -321,8 +321,8 @@ class GPTBot:
)
if event.body.startswith("* "):
command = event.body[2:].split()[1] if event.body.split()[1:] else None
else:
event.body = event.body[2:]
command = event.body.split()[1] if event.body.split()[1:] else None
await COMMANDS.get(command, COMMANDS[None])(room, event, self)