suranc / fugawi-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fugawi-bot

This is a bot for The Fugawi Slack community. It's a collection of useful functions and inside jokes.

To run locally

  1. Create a config file called "fugconfig" that exports your Slack bot's token.
    export HUBOT_SLACK_TOKEN="xoxb-..."
    
  2. Run npm install
  3. Run ./fugrun to source your "fugconfig" configuration file, and (re)start your bot.

Run in Heroku

To deploy on Heroku, follow these directions.

  1. If you don't already have a Heroku account, register for one here
  2. After you've signed into your new account, create a new app.
  3. Go to the Deploy tab and select GitHub as your deployment method
  • If you haven't connected to your Heroku account to GitHub, click Connect to GitHub (seen below)
  • Once connected, select your username, enter "universe-bot", and select Connect connect-to-github
  1. In the Manual Deploy section, click Deploy Branch
  2. Add your Hubot Slack Token to your Heroku app's environment variable
  • Get your Slack Token from the .env file in your Glitch app or directly from your Hubot configuration on Slack
  • Navigate to the Settings tab on your Heroku app
  • Select the Reveal Config Vars button
  • Type HUBOT_SLACK_TOKEN in the KEY field and your token into the VALUE field, then click Add
  1. Open Slack to test your deployment
  • Note: To test properly, make sure to close the Glitch browser.

About


Languages

Language:CoffeeScript 94.8%Language:Shell 2.1%Language:Dockerfile 1.6%Language:Batchfile 1.3%Language:Procfile 0.2%