hubot-rocketchat
hubot-rocketchat copied to clipboard
Delayed sends and 'Bot is typing...' UX enhancement
Related to https://github.com/RocketChat/Rocket.Chat/issues/9337
@garychapman has already worked on the issue of setting up a queue with a timed delay between each send from Hubot. His work needs to be integrated with the v2 adapter and it would be great if that also included sending the isTyping
event notification to the server, showing the bot is working on it's next message.
I believe this is being done in the hubot natural repo also. Basically adding artificial delay and typing to make feel more personal.
FMI
- https://github.com/RocketChat/hubot-natural/blob/51570b06dba8f7b678710e1b3cb2b6c843de925c/scripts/bot/index.coffee#L12-L37
- https://github.com/RocketChat/hubot-rocketchat/pull/256
These approaches could be merged and added to the SDK, to delay replies and consecutive sends to the same room, triggering the bot is typing
display. Or maybe it should be specific to the adapter? Putting a pin in this one. 📌
Sending typing for sure... Delaying... I think that should be adapter.. or a separate method on sdk. Because sdk is js. Might not just be bots using it.