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

Track channel and user names #3

@benjie

Description

@benjie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions