Update 'bot.sh'

This commit is contained in:
verita84 2023-07-10 20:22:36 -06:00
parent 52117d6b48
commit d6d4b6c6c3

8
bot.sh
View File

@ -1,14 +1,14 @@
#!/bin/bash
#############################
ENDPOINT='poster.place'
ENDPOINT='myinstance.com'
SQL_USER='root'
SQL_PASS='sql'
SQL_HOST='127.0.0.1'
SQL_HOST='0.0.0.0'
SQL_DATABASE='pleroma'
STATS_MESSAGE=""
#STATS_MESSAGE="Daily Block Stats for: $ENDPOINT"
############################
cd /root/docker/blockbot
cd /raid/server/detroit_root/akkoma/blockbot
blocks(){
#TIME_STAMP="`date +%y-%m-%d` `date +%H`"
@ -67,7 +67,7 @@ done
if [ -n "$1" ]; then
echo $data
else
echo "Poster.place Block Report $data" | toot post
echo ":hacker_l::hacker_e::hacker_a::hacker_d::hacker_e::hacker_r::hacker_b::hacker_o::hacker_a::hacker_r::hacker_d: $data" | toot post
fi
}