aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2010-09-10 13:04:13 +0200
committerNatanael Copa <natanael.copa@gmail.com>2010-09-10 13:04:13 +0200
commit1c514f4c8a83d3f03642aa6c3dd78612097094a5 (patch)
tree584f6bfdaf4af8202240ee4ab6e393df04906e4b
parentf18a88bb8a5c1835339084c87f541123a17056f3 (diff)
downloadsircbot-1c514f4c8a83d3f03642aa6c3dd78612097094a5.tar.bz2
sircbot-1c514f4c8a83d3f03642aa6c3dd78612097094a5.tar.xz
readme: tell how to use sircbot-send
-rw-r--r--README12
1 files changed, 10 insertions, 2 deletions
diff --git a/README b/README
index eac2309..fee9ba2 100644
--- a/README
+++ b/README
@@ -1,9 +1,17 @@
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 fifo: /var/run/sircbot/<#channel>
+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'
-Everything written to the fifo will be echoed in the channel.
+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.