Advertisement
ecube8

bashbot

Apr 10th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. nick="cubencbot"
  4. channel="#bots"
  5. server="wazu.info.tm"
  6.  
  7. # These are FIFO's
  8. input="ircbot_input"
  9. output="ircbot_output"
  10.  
  11. iteration=0
  12. tail -f ircbot_input | nc $server 6667 | while read msg
  13. do
  14.   if [ $iteration = 0 ]
  15.   then
  16.     iteration=1
  17.     sleep 2
  18.     echo "NICK cubencbot" > ircbot_input
  19.     sleep 1
  20.     echo "USER cubencbot cubencbot cubencbot cubencbot" > ircbot_input
  21.     sleep 1
  22.     echo "JOIN #wazuhome" > ircbot_input
  23.     echo "asdf"
  24.   fi
  25.   echo $msg > ircbot_output
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement