I’m working on implementing a sort of “command-less chatbot” for Discord. This means that along with the general challenges of handling multiple users at once, I want to be able to handle abandoned conversations gracefully.
Suppose I have a user who starts up a FormAction but abandons the conversation midway. To prevent it from potentially interfering with other people’s experience (or even that user’s experience when they return) I would like to implement a timeout to my FormActions. (I specify FormActions because my Actions are all designed around being one-statement-one-response anyways.) How can I approach implementing this?