Compare commits
2 Commits
9b75138b47
...
8ad5751715
Author | SHA1 | Date | |
---|---|---|---|
|
8ad5751715 | ||
|
57872194e5 |
12
start.sh
12
start.sh
@ -4,10 +4,10 @@ trap cleanup 1 2 3 6 9 11
|
|||||||
cleanup() { kill $PID; }
|
cleanup() { kill $PID; }
|
||||||
|
|
||||||
|
|
||||||
BOTNICK="uugbot"
|
BOTNICK="uugbot2"
|
||||||
SERVER="irc.uugrn.org"
|
SERVER="irc.uugrn.org"
|
||||||
PORT="6660"
|
PORT="6660"
|
||||||
CHANNEL="#uugrn"
|
CHANNEL="#bottest"
|
||||||
|
|
||||||
BOTDIR="$PWD"
|
BOTDIR="$PWD"
|
||||||
|
|
||||||
@ -89,7 +89,6 @@ kalender() {
|
|||||||
# $1 nick
|
# $1 nick
|
||||||
# $2 -1 decrease, +1 increase
|
# $2 -1 decrease, +1 increase
|
||||||
savekarma() {
|
savekarma() {
|
||||||
mkdir -p $BOTDIR/karma
|
|
||||||
[ ! -f "$BOTDIR/karma/$1" ] \
|
[ ! -f "$BOTDIR/karma/$1" ] \
|
||||||
&& echo 0 > "$BOTDIR/karma/$1"
|
&& echo 0 > "$BOTDIR/karma/$1"
|
||||||
|
|
||||||
@ -147,8 +146,7 @@ karma() {
|
|||||||
&& say "Echt jetzt, $NICK?"
|
&& say "Echt jetzt, $NICK?"
|
||||||
}
|
}
|
||||||
transparenzbericht() {
|
transparenzbericht() {
|
||||||
mkdir -p "$BOTDIR/karma"
|
cd $BOTDIR/karma
|
||||||
cd $BOTDIR/karma || return
|
|
||||||
say "Gummipunkte Transparenzbericht:"
|
say "Gummipunkte Transparenzbericht:"
|
||||||
for i in $(ls)
|
for i in $(ls)
|
||||||
do
|
do
|
||||||
@ -190,9 +188,7 @@ weather() {
|
|||||||
say "$(curl -s "https://wttr.in/$l?lang=de&format=%l:+%t+%C+%w+%h+Regen")"
|
say "$(curl -s "https://wttr.in/$l?lang=de&format=%l:+%t+%C+%w+%h+Regen")"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p "$BOTDIR/irc"
|
mkdir -p "$BOTDIR/{irc,seen,karma}"
|
||||||
mkdir -p "$BOTDIR/seen"
|
|
||||||
mkdir -p "$BOTDIR/karma"
|
|
||||||
cd "$BOTDIR"
|
cd "$BOTDIR"
|
||||||
|
|
||||||
echo "connecting."
|
echo "connecting."
|
||||||
|
Loading…
Reference in New Issue
Block a user