Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fifo="$(mktemp -u)"
- mkfifo "$fifo"
- trap "rm -f $fifo" EXIT
- while :; do
- sic -h <server> -n <bot name> < "$fifo" &
- {
- sleep 2
- echo ":m nickserv identify <nick password>"
- echo ":s #channel"
- echo ":j #channel"
- sleep 1
- tail -n0 -f <dir to the file you want to stream>
- } > "$fifo"
- done
Add Comment
Please, Sign In to add comment