scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 396 forks source link

Add support for `bot_message` events without usernames #202

Closed imduffy15 closed 4 years ago

imduffy15 commented 4 years ago

As per https://api.slack.com/events/message/bot_message a bot_message may not always contain a username. Username is only present should the username be overrided in the event request.

Currently when SlackBot receives a bot_message with no overriden username it exits not passing the event forward.

This changes updated the relevant code to pull the username from the bot_profile

dangra commented 4 years ago

@lins05 any chance you can take a look at this change?

dangra commented 4 years ago

thanks!