Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- nick="cubencbot"
- channel="#bots"
- server="wazu.info.tm"
- # These are FIFO's
- input="ircbot_input"
- output="ircbot_output"
- iteration=0
- tail -f ircbot_input | nc $server 6667 | while read msg
- do
- if [ $iteration = 0 ]
- then
- iteration=1
- sleep 2
- echo "NICK cubencbot" > ircbot_input
- sleep 1
- echo "USER cubencbot cubencbot cubencbot cubencbot" > ircbot_input
- sleep 1
- echo "JOIN #wazuhome" > ircbot_input
- echo "asdf"
- fi
- echo $msg > ircbot_output
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement