hellostealth / stealth

An open source Ruby framework for text and voice chatbots. 🤖

Home Page:https://hellostealth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Delays

mgomes opened this issue · comments

Add an option for delay reply types called dynamic. It would look this within a reply:

- reply_type: text
  text: "Hello World!"
- reply_type: delay
  duration: dynamic

The calculated delay would be dynamic and based on the previous reply type and length. So for example, a short text like "Hello World!" would require a short delay of maybe 1 second. An image or a long paragraph would require a larger one.