Skip to content

avocadee/slackbot-heroku-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Starbot

Starbot

js-standard-style

Starbot is GitHub's trending open-source page, reincarnated as a Slack bot. It is also the sample referenced in the "How to Deploy Your Slack Bots to Heroku" blog post.

Supported /slash commands

Create a /starbot custom slash command, using the URL: {app-name}.herokuapp.com/commands/starbot. Take note of the provided token, this is used to verify requests come from Slack.

  • /starbot or /starbot help - List available commands
  • /starbot repos - Display trending GitHub projects

Install

$ npm install

Copy .env-example to .env

$ cp .env-example .env

Configure

SLACK_TEAM_TOKEN=xoxb...8WRqKWx
NODE_ENV=development
PORT=3000

Run

$ npm start

🚀 Starbot LIVES on PORT 3000 🚀

Visit localhost:3000.

Deploy

Deploy

Or with the Heroku Toolbelt

$ heroku create {optional-app-name}

Creating app... done, stack is cedar-14
https://blooming-scrubland-64464.herokuapp.com/

$ git push heroku master
...
remote: -----> Node.js app detected
...
remote:        https://blooming-scrubland-64464.herokuapp.com/ deployed to Heroku
...
To https://git.heroku.com/blooming-scrubland-64464.git
 * [new branch]      master -> master

$ heroku open

License

This project is licensed under the terms of the MIT license. -- Need your own? There's a button for that 😉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published