Skip to content

kentaro/takosan

Repository files navigation

Takosan

Takosan is a simple Web interface to Slack (Ikachan for Slack).

Illustrated by @demiflare168

Installing

For Users

You can choose and get binaries from the releases like below:

$ wget https://github.com/kentaro/takosan/releases/download/1.0.9/takosan_linux_amd64 -O takosan
$ chmod +x takosan

For Developers

Just go get as below:

$ go get github.com/kentaro/takosan

Deploy to Heroku

Deploy

Usage

First, set your Slack API token.

$ export SLACK_API_TOKEN="YOUR SLACK API TOKEN"

Then, execute takosan command like below:

$ takosan [-host string] [-port int] [-name string] [-icon string]

Options

-host (default: "127.0.0.1")

The interface which takosan binds.

-port (default: 4979)

The port to which takosan listens.

-name (default: "takosan")

The name which you want to display on Slack for this bot.

-icon (default: the URL of the image above)

The icon URL which you want to display on Slack for this bot.

See httpd.go for other params.

API

/notice

/privmsg

$ curl -d "channel=#channel&message=test message" localhost:4979/privmsg

You can use both of the endpoints to send messages to Slack. No change can be seen on Slack, though.

/join

/leave

When you post requests to these endpoints, the server always returns 404. Which is because you don't need to join/leave groups on Slack explicitely.

License

MIT

Author

Kentaro Kuribayashi

About

A Simple Web Interface to Slack (Ikachan for Slack)

Resources

License

Stars

Watchers

Forks

Packages

No packages published