add forgotten script used in PPFI

This commit is contained in:
Aminda Suomalainen 2018-11-15 11:57:32 +02:00
parent 072b90e499
commit 631c470ea9
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67

20
irc/piraatit/keeptopic.bash Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Based on https://stackoverflow.com/a/8880633
# Purpose: mass setting entrymsgs
# Finnish speaking channels
declare -a arr=("#aaltopiraatit" "#akateemisetpiraatit" "#aktiivit" "#antikupla" "#grafiikka" "#hallituskokous" "#hame" "#helsinki" "#hepihalko" "#kaakko" "#keski-suomi" "#likakaivo" "#mediaseuranta" "#messi" "#Mikaela" "#pinu" "#pinu-hallitus" "#pinuhalko" "#pinu_hallitus" "#piraatit" "#piraattinuoret" "#piraattipuolue" "#piraattivpn" "#pirkanmaa" "#politiikka" "#ppfi-chanacs-abuse" "#puoluehallitus" "#puoluekokous" "#puoluetoimisto" "#purje" "#satakunta" "#sateenkaaripiraatit" "#savo-karjala" "#sivusto" "#syotteet" "#test" "#toiminta" "#tulevaisuus" "#uusimaa" "#vaaliteltta" "#vaasa" "#varainhankinta" "#varsinais-suomi" "#verkkopalvelut")
for i in "${arr[@]}"
do
echo "/msg ChanServ set $i KEEPTOPIC ON"
done
# English speaking channels
declare -a arr=("#ppfi" "#ypfi")
for i in "${arr[@]}"
do
echo "/msg ChanServ set $i KEEPTOPIC ON"
done