erinknight242 / hsbot

Headspring's Hipchat Hubot
9 stars 12 forks source link

Find a better way to handle "approved" list of rooms for always listening scripts #83

Open bptillman opened 7 years ago

bptillman commented 7 years ago

For some scripts, we only want them to listen/respond in specific rooms, so we should try to come up with a better way to handle this.

You can see in the beer.coffee script how we pull a list of rooms from the env variables and then only if we are in those rooms, respond. If we ever add another room that's approved, we need to update each script to add it in manually, which can be tedious.