Do some stuff over IRC
This bot makes a couple of assumptions:
- You've a SASL account for this bot to use
- You've enabled actions notifications in github for failed/successful runs
This bot requires the following env vars:
$SASL_USER
- the user to connect with$SASL_PASSWORD
- the password to connect with$SERVER
- IRC connection details, asirc://server:6667
orircs://server:6697
(ircs
implies irc-over-tls)$VERIFY_TLS
- Verify TLS, or sack it off. This is of interest to people, like me, running an ircd on localhost with a self-signed cert. Matches "true" as true, and anything else as false
The SASL mechanism is hardcoded to PLAIN.
This bot can be built using pretty standard go tools:
$ go build
Or via docker:
$ docker build -t foo .
If you've built the app yourself, then happy day- there's your binary!
Otherwise I suggest via docker:
$ docker build -t foo .
$ docker run foo
(Setting the above environment variables accordingly)