marvvin

[archived] IRC bot
git clone https://hhvn.uk/marvvin
git clone git://hhvn.uk/marvvin
Log | Files | Refs | README | LICENSE

roll (511B)


      1 #!/bin/bash
      2 
      3 check(){
      4         [ "$1" = "0" ] && {
      5                 sleep 2.3
      6                 send "KICK $CHANNEL $NAME BAMM"
      7 		exit 1
      8         } || {
      9                 sleep 2.3
     10                 send "PRIVMSG $CHANNEL :*click*"
     11         }
     12 }
     13 
     14 check $(head -c 1000 < /dev/urandom | tr -dc '0-9a-f' | sed 's/./\n&/g' | shuf | head -n 1)
     15 check $(head -c 1000 < /dev/urandom | tr -dc 0124567 | sed 's/./\n&/g' | shuf | head -n 1)
     16 check $(head -c 1000 < /dev/urandom | tr -dc 1350849 | sed 's/./\n&/g' | shuf | head -n 1)
     17