From dc490ad86f0180550027b7dd7dddbb3af15b71a7 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 22 Jan 2018 21:08:13 +0200 Subject: [PATCH] piraatit/irc: laziness hit me --- irc/piraatit/messi.bash | 14 ++++++++++++++ irc/piraatit/piraattibotit.bash | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 irc/piraatit/messi.bash create mode 100755 irc/piraatit/piraattibotit.bash diff --git a/irc/piraatit/messi.bash b/irc/piraatit/messi.bash new file mode 100755 index 0000000..55a5e01 --- /dev/null +++ b/irc/piraatit/messi.bash @@ -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 diff --git a/irc/piraatit/piraattibotit.bash b/irc/piraatit/piraattibotit.bash new file mode 100755 index 0000000..7a1f826 --- /dev/null +++ b/irc/piraatit/piraattibotit.bash @@ -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