rocdev-foundation / medera

Is a chat bot the new "Hello, World"?
GNU General Public License v3.0
1 stars 2 forks source link

Resolve slack user and channel names #8

Closed dantswain closed 7 years ago

dantswain commented 7 years ago

The message format that we get over the wire from the Slack event stream has user and channel names in some kind of ID format - e.g., "C12345" for a channel. The bot library provides a way to look these up but it requires state from the bot itself. I propose to do the lookup on message receipt and add the human-readable names directly to our Event struct.