__________.
/_/-----/_/| __
( ( ' ' ( (| /'--'\
(_( ' ' (_(|/. .\
/ /=====/ /| '||'
/_//____/_/ | ||
(o|:.....|o) | ||
|_|:_____|_|/' _||_
' ' /____\
good bot
Launch sitbot
to listen on localhost:12345
:
go get github.com/chzchzchz/sitbot/cmd/sitbot
go get github.com/chzchzchz/sitbot/cmd/sitbox
sitbot localhost:12345 &
A bot profile has connection information and regular expression pattern matching rules to control script activation. One sitbot process can manage multiple profiles connectiong to multiple servers. Post a JSON-encoded profile to the sitbot server to launch a new bot; see profile.json for an example.
Connect to an IRC network by posting a bot profile to sitbot:
curl localhost:12345 -XPOST [email protected]
Reposting a bot profile will update the bot's pattern matching rules.
Configure a control panel page:
curl localhost:12345/tmpl -XPOST [email protected]
Any connected bots will be viewable via the generated HTML at http://localhost:12345/
.
Disconnect a bot by deleting its profile identifier:
curl localhost:12345/bot/mainbot -XDELETE
sitbot can listen on ports and relay IRC messages between the bot and another IRC client. By connecting through the bouncer, a client sees the bot's IRC session and can issue IRC commands through bot user.
Create a bouncer:
curl localhost:12345/bouncer/mainbot -XPOST -d localhost:7777
irssi -c localhost -p 7777
The irc.ltd
chat network generously hosts the official sitbot project support channel on chat.irc.ltd:6697/#sitbot.