Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Slack: fix send_via_rtm, fix typing indicator #533

Merged
merged 3 commits into from
Dec 19, 2016

Conversation

jonchurch
Copy link
Contributor

closes #507

bot.send() is looking for bot.config.send_via_rtm !== true which its not finding in bot.config. So messages are being sent via web API, and never reaching the rtm.send

However, bot.botkit.config.send_via_rtm does exist, once you've passed it into the controller, and this PR changes the logic to look there.

Also check if message.type == 'typing' to send typing indications via rtm.

@benbrown benbrown merged commit 8fe9b39 into howdyai:master Dec 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bot.startTyping Not Working in Slack
3 participants