Slack Typing Indicator
Maintains a constant presence of "User is typing..." in whatever Slack channels are defined.
Review HISTORY.md for a review of novel commands used here. Posted for posterity.
Install
bundle install
rake channels
Configuring Token
This script requires configuring a Slack access token. I chose to add the token to a variable in my bash profile and export it from there.
Visit Slack's website to generate tokens. Make sure you're logged in via their web client in order to get tokens for different workspaces to appear.
Add the token you get there to your bash profile like:
.bash_profile
export SLACK_API_TOKEN="xoxp-XXXXXXXXXX-XXXXXXXXXXXX-XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Targeting Channels
Modify the interested_channels array of strings in
bin/channeler.rb
to target the names of which channels you want to maintain typing presence in.
bin/channeler.rb
interested_channels = [ 'seattle-web-071519', 'seattle-web-080519', 'seattle-web-082619', 'seattle-random', 'hot-nuggets', 'all-about-code', 'seattle-brogue', ]
