Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Treslek: A node ircbot.
JavaScript

0.9.2

latest commit bdc273e179
@jirwin authored
Failed to load latest commit information.
bin Clean up logging a bit.
docker Add Dockerfiles
lib
plugins Remove plugins that have been put into separate repos.
scripts Support configs from anywhere in install_plugins script.
spec/plugins Add support for Vault of Satoshi
.gitignore Make conf.js actually json.
.travis.yml Add travisci support.
LICENSE Add License.
Makefile feature(tests): Add tests to travis build. Thanks to @schonstal for s…
README.md
conf.json.dist Rip out logstash support.
package.json 0.9.2

README.md

treslek

A node irc bot made to replace doslek.

Webhook Server

treslek supports running a simple HTTP server for receiving webhooks from external services and acting on them. In order to enable this feature, include a key in the config that looks something like the following:

"webhook": {
  "host": "0.0.0.0",
  "port": 1304,
  "channelKey": "webhookChannels"
}

The webhook server works by forwarding the headers and body of any incoming request to a PUBSUB channel on the Redis server. This allows any plugins to listen for any requests that may come in and deal with them accordingly. Given the above configuration, a redis prefix of treslek and the assumption that treslek is available at http://treslek.example.com:1304, a HTTP request to http://treslek.example.com:1304/treslek/webhook would be published to the Redis key treslek:webhookChannels:treslek/webhook. A plugin that would like to listen to this webhook would then subscribe to treslek:webhookChannels:treslek/webhook and react as it pleases.

A good example of this would be a plugin that listens for webhooks from Github about activity on a set of repositories. You could configure each of your repositories to send webhooks to http://treslek.example.com:1304/github/<repo-name> and then write a plugin to announce when Pull Requests have been opened.

License

treslek may be freely distributed under the MIT license.

Something went wrong with that request. Please try again.