Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Purpose: To automate updates to the Channels List Airtable document with info pulled from Slack's API

License

Notifications You must be signed in to change notification settings

ProgressiveCoders/prog-channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Andy Gimma
Dec 12, 2018
79245f4 · Dec 12, 2018

History

35 Commits
Mar 18, 2017
Dec 12, 2018
Mar 29, 2017
Mar 18, 2017
Mar 18, 2017
Mar 18, 2017
Dec 12, 2018
Dec 12, 2018
Mar 17, 2017
Mar 18, 2017
Mar 19, 2017
Mar 18, 2017
Mar 18, 2017
Dec 12, 2018

Repository files navigation

Prog::Channels

Code Climate Build Status

Usage

Copy .env.example to .env and ensure you update it with real credentials.

Next run bundle exec rake test to ensure all systems are go.

Finally, bin/sync oughta do something fun with slack and airtable.

There's also a rake task that will simply run bin/sync:

rake prog:channels:sync

Testing

Integration tests essentially check that the tokens for Slack and for Airtable are set and are valid.

Unit tests run against mocks and don't touch either API.

bundle exec rake test

Dependencies

Development

First Goal: use the slack gem to get channel lists and info, then use the airtable gem (airrecord) to update the Airtable document with latest info. :check:

Next Goals: clean it up; automate build; release a rubygem(?); have fun :)

Deployment

Heroku:

git clone [email protected]:ProgressiveCoders/prog-channels.git
heroku create
git push heroku master
heroku ps:scale web=1
heroku addons:create scheduler:standard

Next run heroku addons:open scheduler to configure the scheduler addon to run the following task as often as you like:

rake prog:channels:sync

And set environment variables:

heroku config:set SLACK_API_TOKEN=xoxp-the-real-one \
                  AIRTABLE_KEY=keyTherealone        \
                  AIRTABLE_APP=appSomeRealOne       \
                  AIRTABLE_BASE="Real Table Name"   \

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ProgressiveCoders/prog-channels.

About

Purpose: To automate updates to the Channels List Airtable document with info pulled from Slack's API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published