Skip to content

codeforsanjose/onboarding-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onboarding-slack-bot

Code for San Jose On Boarding Slack Bot

Description

I began following this tutorial posted by Slack: https://api.slack.com/best-practices/blueprints/new-user-notification And ended up forking this project https://github.com/slackapi/template-terms-of-service

The onboarding-slack-bot's goal is to automate the Code for San Jose onboarding process as much as possible.

Run locally

  1. Get the code
    • Either clone this repo and run npm install
  2. Set the following environment variables to .env (see .env.sample):
    • SLACK_ACCESS_TOKEN: Your app's xoxb- token (available on the Install App page, after you install the app to a workspace once.)
    • SLACK_SIGNING_SECRET: Your app's Signing Secret (available on the Basic Information page)
  3. If you're running the app locally:
    • Start the app (npm start)

Deploy to Production

This project exists as a Heroku application on https://cfsj-onboarding-slack-bot.herokuapp.com. In order to directly edit prod, please contact the [email protected] for getting added to the Heroku repo

Steps for implementing this project
  1. Make sure you can run the app locally either by following the steps above or testing through heroku local
  2. git init
  3. If creating the app for the first time,heroku create
  4. git push heroku master

Enable the Slack Events API

  1. Go back to the app settings and click on Events Subscriptions
  2. Set the Request URL to your server (e.g. https://yourname.ngrok.com) + /events
  3. On the same page, subscribe to the team_join team events

Enable Slack Interactive Messages

  1. In the app settings, click on Interactive Messages
  2. Set the Request URL to your server + /interactive

Releases

No releases published

Packages

No packages published