Expected behavior: if you write /add-token to the bot, it replies with a useful message on how to compose a better command
Actual behavior: mailadm crashes.
Steps to reproduce the problem:
open an admin group, write /add-token to the group
Logs:
2022-12-16T14:19:20.571504592Z process_incoming message: /add-token
2022-12-16T14:19:20.571593604Z /add-token seems to be a valid message.
2022-12-16T14:19:20.571602812Z 0.54 [events-bot] call ac_incoming_message kwargs={'message': <Message incoming sys=False '/add-token' id=73 sender=10/tmp.ek4ap@testrun.org chat=15/Admin group on example.org>} failed
2022-12-16T14:19:20.571607235Z Exception list index out of range
2022-12-16T14:19:20.571610591Z Traceback:
2022-12-16T14:19:20.571613878Z Traceback (most recent call last):
2022-12-16T14:19:20.571617204Z File "/usr/lib/python3.9/site-packages/deltachat/events.py", line 268, in swallow_and_log_exception
2022-12-16T14:19:20.571620667Z yield
2022-12-16T14:19:20.571623778Z File "/usr/lib/python3.9/site-packages/deltachat/events.py", line 263, in _inner_run
2022-12-16T14:19:20.571627126Z hook(**kwargs)
2022-12-16T14:19:20.571630341Z File "/usr/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
2022-12-16T14:19:20.571633628Z return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
2022-12-16T14:19:20.571636860Z File "/usr/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
2022-12-16T14:19:20.571640264Z return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
2022-12-16T14:19:20.571643580Z File "/usr/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall
2022-12-16T14:19:20.571760916Z return outcome.get_result()
2022-12-16T14:19:20.571764457Z File "/usr/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
2022-12-16T14:19:20.571767700Z raise ex[1].with_traceback(ex[2])
2022-12-16T14:19:20.571771039Z File "/usr/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
2022-12-16T14:19:20.571811966Z res = hook_impl.function(*args)
2022-12-16T14:19:20.571817372Z File "/usr/lib/python3.9/site-packages/mailadm/bot.py", line 97, in ac_incoming_message
2022-12-16T14:19:20.571820690Z result = add_token(self.db, name=arguments[1], expiry=arguments[2], maxuse=arguments[3],
2022-12-16T14:19:20.571824119Z IndexError: list index out of range
/add-token
to the bot, it replies with a useful message on how to compose a better command/add-token
to the group