@echo -n "LLOC: "; grep -vE '(^ *#|^ *$$)' irkerd irkerhook.py | wc -l
SOURCES = README COPYING NEWS install.txt security.txt hacking.txt \
- irkerd irkerhook.py filter-example.py filter-test.py \
+ irkerd irkerhook.py filter-example.py filter-test.py irk \
Makefile irkerd.xml irkerhook.xml
EXTRA_DIST = irker-logo.png org.catb.irkerd.plist
--- /dev/null
+#!/bin/sh
+# Illustrates how to test irkerd.
+#
+# First argument must be a channel URL. If it does not begin with "irc",
+# the base URL for freenode is prepended.
+#
+# Second argument must be a payload string.
+#
+channel=$1
+message=$2
+
+case $channel in
+irc:*) ;;
+*) channel="irc://chat.freenode.net/$channel"
+esac
+
+echo "{\"to\":\"$channel\",\"privmsg\":\"$message\"}" | netcat localhost 6659