Revert last commit
This commit is contained in:
parent
37a1e6a85c
commit
1b290c6b92
1 changed files with 3 additions and 3 deletions
|
@ -321,8 +321,8 @@ class GPTBot:
|
||||||
)
|
)
|
||||||
|
|
||||||
if event.body.startswith("* "):
|
if event.body.startswith("* "):
|
||||||
command = event.body[2:].split()[1] if event.body.split()[1:] else None
|
event.body = event.body[2:]
|
||||||
else:
|
|
||||||
command = event.body.split()[1] if event.body.split()[1:] else None
|
command = event.body.split()[1] if event.body.split()[1:] else None
|
||||||
|
|
||||||
await COMMANDS.get(command, COMMANDS[None])(room, event, self)
|
await COMMANDS.get(command, COMMANDS[None])(room, event, self)
|
||||||
|
|
Loading…
Reference in a new issue