hangupsbot icon indicating copy to clipboard operation
hangupsbot copied to clipboard

Wait for the user's response

Open fedebisignani opened this issue 6 years ago • 1 comments

Is there a way that within a command, the bot waits for an answer?

Example:

User command: get_forecast Bot answer: Where? User: "new york"

Everything within the same command

fedebisignani avatar Apr 04 '18 20:04 fedebisignani

No, not currently. It's an async loop, where every new message from a user is treated as the first message. There's no state or waiting logic currently in place.

This can be done, but it will be a fundamental change to how the bot handles messages.

wardellbagby avatar Apr 04 '18 22:04 wardellbagby