nopaste http server & IRC agent.
$ go get github.com/kayac/nopaste/cmd/nopaste
$ nopaste -config config.yaml
nopaste will rewrite the config.yaml
(irc.channels section) when join to a new IRC channel.
base_url: http://example.com # for IRC messages
listen: "localhost:3000"
data_dir: data
irc:
host: localhost
port: 6666
secure: false
password: secret
nick: npbot
slack:
webhook_url: https://hooks.slack.com/services/XXX/YYY/zzzz
channels:
- '#general'
- '#infra'
nopaste runs http server on http://#{listen}/np
.
nopaste can accept Amazon SNS notification messages.
Set environment variables.
AWS_ACCESS_KEY_ID=XXXXXXXXXX
AWS_SECRET_ACCESS_KEY=yyyyyyyyyyy
Add a SNS topic http(s) endpoint to http://example.com/np/amazon-sns/{channel_name}?key={message key}
.
The MIT License (MIT)