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

Track channel and user names #3

Open
10 tasks
benjie opened this issue Apr 4, 2016 · 0 comments
Open
10 tasks

Track channel and user names #3

benjie opened this issue Apr 4, 2016 · 0 comments

Comments

@benjie
Copy link
Member

benjie commented Apr 4, 2016

Channels

  • Load channels bot is in on startup (channels, groups, im), store into a hash keyed by channel ID
  • On channel_joined, add new channel information to hash
  • On channel_renamed, update channel hash information
  • On channel_left, remove channel from hash
  • Add a function to get the channel name from the hash, falling back to the ID on failure

Channel IDs seem to be prefixed with a character:

  • C - channel (public)
  • G - group (private)
  • D - im (DM)

Relevant:

Users

  • Load list of users on startup, store into a hash keyed by user ID
  • On team_join, add new user
  • On user_change, update user
  • Add a function to get the user name from the hash, falling back to the ID on failure

Relevant:


  • Ensure that the above covers regular channels, private channels and DMs
@benjie benjie changed the title Track channel names Track channel and user names Apr 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant