Coder Social home page Coder Social logo

terraform-hubot-slack's Introduction

README

This provides an instruction to set up a hubot in Slack.

Prerequisites

and, basically only works on MacOSX.

Launch a heroku instance with terraform

Create a file heroku.tfvars

email = "[email protected]"
api_key = "aaaaaaaa-1111-bbbb-2222-cccccccccccc"

Let's say you already have a token of hubot for Slack, type like this.

$ VAR_FILE=heroku.tfvars \
  SLACK_TOKEN=<your-token> \
  SLACK_TEAM=<your-tema> \
  SLACK_BOTNAME=<your-botname> make apply
heroku_app.default: Creating...
  config_vars.#:                     "" => "1"
  config_vars.0.HEROKU_URL:          "" => "http://secret-island-8419.herokuapp.com"
  config_vars.0.HUBOT_SLACK_BOTNAME: "" => "secret-island-8419"
...
Outputs:

  heroku_app.default.git_url = [email protected]:secret-island-8419.git

SLACK_TOKEN is issued here, https://kii.slack.com/services/new/hubot

Deploy a new bot onto the heroku instance

On the assumption you've already logged in heroku

$ . .env
$ make bot push
hubot --create bot
...

This will create a new git repository to be deployed onto heroku, and will push the repository, so it's deploy.

That's it.
Hey, call the bot on your team of Slack!

Retry

$ VAR_FILE=heroku.tfvars \
  SLACK_TOKEN=<your-token> \
  SLACK_TEAM=<your-tema> \
  SLACK_BOTNAME=<your-botname> make destroy
...
$ make distclean

This cleans up all resources, local files and heroku instance.

You can start from the top.

terraform-hubot-slack's People

Contributors

tmtk75 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.