Codebase list irker / debian/1.7+dfsg-2 irk
debian/1.7+dfsg-2

Tree @debian/1.7+dfsg-2 (Download .tar.gz)

irk @debian/1.7+dfsg-2raw · history · blame

#!/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