Created
May 31, 2014 01:42
-
-
Save hunner/63f66eeaa7e81c816618 to your computer and use it in GitHub Desktop.
Bash irc bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
line="" | |
started="" | |
rm botfile | |
mkfifo botfile | |
tail -f botfile | nc irc.cat.pdx.edu 6667 | while true ; do | |
if [ -z $started ] ; then | |
echo "USER bdbot 0 bdbot :I iz a bot" > botfile | |
echo "NICK bdbot" >> botfile | |
echo "JOIN #notzombies" >> botfile | |
started="yes" | |
fi | |
read irc | |
#echo $irc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment