Skip to content
YO hub
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
config.dist.json
main.go
slackHandler.go
yobackHandler.go

README.md

YO'ed

YO'ed is hub written in Go to dispatch actions when someone YO you.

Usage

You need the Go tools installed.

go get github.com/mentionapp/yoed
cd $GOPATH/src/github.com/mentionapp/yoed
cp config.json.dist config.json
$GOPATH/bin/yoed

Then change the callback URL in Yo's API dashboard to point to http://your.server:port/yoed.

Configuration

The configuration is specified in the config.json file.

"listen"

Specifies the address and port to listen on, e.g. 0.0.0.0:12345 to listen on port 12345 on any address.

"handlers"

This is the enabled handlers list. Each handler has its own configuration. See below for more details about handlers.

Available Handlers

YO'ed comes with a few handlers:

Slack handler

Uses Slack's Incoming WebHooks integration to YO in a room.

The only configuration parameter is the webhook_url URL you get while setting up the webhook.

YO-back

Sends back a YO to users who YO you.

The only configuration parameter is the api_token.

Custom handlers

Custom handlers can be added easily. They only have to be compatible with the yoedHandler interface:

type yoedHandler interface {
    Handle(username string)
}
Something went wrong with that request. Please try again.