hubot-rocketchat icon indicating copy to clipboard operation
hubot-rocketchat copied to clipboard

Delayed sends and 'Bot is typing...' UX enhancement

Open timkinnane opened this issue 6 years ago • 3 comments

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.

timkinnane avatar Mar 20 '18 04:03 timkinnane

I believe this is being done in the hubot natural repo also. Basically adding artificial delay and typing to make feel more personal.

geekgonecrazy avatar Mar 30 '18 06:03 geekgonecrazy

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. 📌

timkinnane avatar Jun 02 '18 05:06 timkinnane

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.

geekgonecrazy avatar Jun 02 '18 16:06 geekgonecrazy