A Slack Bot that pulls Pixiv information and posts the full image(s) into Slack, with iOS shortcuts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
910 B

  1. ## Installation
  2. Create a new Bot Integration under [services/new/bot](http://slack.com/services/new/bot).
  3. ![](screenshots/register-bot.png)
  4. On the next screen, note the API token.
  5. ## Deploy Slack-Gamebot
  6. [![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
  7. ### Environment
  8. #### SLACK_API_TOKEN
  9. Set SLACK_API_TOKEN from the Bot integration settings on Slack.
  10. ```
  11. heroku config:add SLACK_API_TOKEN=...
  12. ```
  13. #### GIPHY_API_KEY
  14. Slack-Gamebot replies with animated GIFs. While it's currently not necessary, uyou may need to set GIPHY_API_KEY in the future, see [github.com/Giphy/GiphyAPI](https://github.com/Giphy/GiphyAPI) for details.
  15. ### Heroku Idling
  16. Heroku free tier applications will idle. Either pay 7$ a month for the hobby dyno or use [UptimeRobot](http://uptimerobot.com) or similar to prevent your instance from sleeping or pay for a production dyno.