Implement '/' command messages
It is not possible to influence the OTR state of the other party, however, sometimes these states are out of sync or it may be that the user wants to practice more. It would be very convenient if the user can tell the bot that they want to start over.
Furthermore it would be very convenient for debugging the bot for developers.
Commands that should be implemented:
-
/help (shows list of commands) -
/reset (resets state to initial state) Maybe this can be implemented as a "terminate_session()" followed by a "start_session()" Note that this means the following: - Disable OTR if it is enabled
- Finish SMP if it is enabled
- Remove the current OTR context
- Set the current state to the initial state of the STATES object
-
/end (basically terminate_session()) - Remove client from the roster
- End conversation
It is also possible to add a button to the LTI instead, where users can end/restart their conversations. This button can then also update the LTI path, redirecting you to the first page (which is not possible from a Jabber message)