aboutsummaryrefslogtreecommitdiffstats
path: root/README
blob: fee9ba2b3b8858a795c8a3a20caccd2d84225f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sircbot is a small IRC bot for use with git hooks, cronjobs, scripts etc

start the server with:
  sircbot -s SERVER -n NICK '#channel1' '#channel2'

It connects to server and joins given channels. When a channel is joined
it creates a unix socket /var/run/sircbot/<#channel> which can connected to
with sircbot-send.

To send to a connected channel use:

  echo "$message" | sircbot-send '#channel1'

sircbot-send will send everything from stdin to given channel.

For every message that goes to the channel, sircbot will run all scripts in
/etc/sircbot.d/<#channel>/ with sender, message and channel name as arguments.