Example usage of the hanu Go framework
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps Update Godeps Oct 24, 2016
cmd Add reply command Oct 24, 2016
vendor Update Godeps Oct 24, 2016
.gitignore Add basics for Heroku support Oct 5, 2016
LICENSE.md Update docs Oct 6, 2016
Procfile Switch from web to worker dyno Oct 5, 2016
README.md Update docs Oct 6, 2016
main.go Increase version to 0.0.2 Oct 24, 2016

README.md

hanu example

Example Go Slack bot using the hanu framework.

Supported commands

  • help - Automated response by hanu
  • hi - Bot will reply with Hi yourself!
  • shout <word> - Bot will reply passed word in uppercase
  • uptime - Bot will reply with it's uptime
  • version - Bot will reply with it's version
  • whisper <word> - Bot will reply passed word in lowercase

Usage

$ > git clone git@github.com:sbstjn/hanu-example.git
$ > cd hanu-example
$ > HANU_EXAMPLE_SLACK_TOKEN=YOUR_TOKEN go run main.go

Heroku

$ > git clone git@github.com:sbstjn/hanu-example.git
$ > cd hanu-example
$ > heroku create
$ > heroku config:set HANU_EXAMPLE_SLACK_TOKEN=YOUR_TOKEN
$ > git push heroku master
$ > heroku ps:scale worker=1

Scaling dynos... done, now running worker at 1:Hobby