piraatit/irc: laziness hit me

This commit is contained in:
Aminda Suomalainen 2018-01-22 21:08:13 +02:00
parent 80df0a5bc6
commit dc490ad86f
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
2 changed files with 28 additions and 0 deletions

14
irc/piraatit/messi.bash Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copied from https://stackoverflow.com/a/8880633 except the nicks
## declare an array variable
declare -a arr=("janneone" "mbrsk" "mielipuoli" "nyos" "usvi" "vhautaka" "yaamboo" "lash-" "d200b" "talikka" "arimartti" "scoffa")
## now loop through the above array
for i in "${arr[@]}"
do
echo "/msg GroupServ invite !ppfi-aktiivit $i"
# or do whatever with individual element of the array
done
# You can access them using echo "${arr[0]}", "${arr[1]}" also

14
irc/piraatit/piraattibotit.bash Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copied from https://stackoverflow.com/a/8880633 except the nicks
## declare an array variable
declare -a arr=("#aaltopiraatit" "#grafiikka" "#hallituskokous" "#hame" "#helsinki" "#hepihalko" "#kaakko" "#keski-suomi" "#mediaseuranta" "#pinu_hallitus" "#piraatit" "#piraattinuoret" "#piraattipuolue" "#piraattivpn" "#pirkanmaa" "#ppfi" "#sateenkaaripiraatit" "#sivusto" "#toiminta" "#tyoryhmaorganisaatiomalli" "#uusimaa" "#vaaliteltta" "#varainhankinta" "#varsinais-suomi" "#verkkopalvelut" "#mikaela" )
## now loop through the above array
for i in "${arr[@]}"
do
echo "/msg ChanServ flags $i !piraattibotit VOP"
# or do whatever with individual element of the array
done
# You can access them using echo "${arr[0]}", "${arr[1]}" also