aaronpk / Slack-IRC-Gateway

Bridge Slack rooms to IRC channels
Other
34 stars 6 forks source link

Slash command for user list #10

Open EdwardHinkle opened 7 years ago

EdwardHinkle commented 7 years ago

Adding a slash command on the Slack side that allows for the listing of active IRC names would be helpful when people in Slack are wondering who is available on IRC.

Sometimes that can be a blackbox wondering if someone is online or not

https://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands#NAMES

aaronpk commented 7 years ago

This should be handled by the main coordinating bot that's relaying messages from IRC to Slack. Parsing the NAMES response is not trivial since it's completely asynchronous and sends quite a lot of IRC traffic. It should be done regularly at an interval by only one process, not in response to the slash command. The slash command should query the local cache of that response instead.