tootbot/templates/run-bot.sh

30 lines
946 B
Bash
Executable file

#!/bin/bash
set -e
# parameters:
# 1- twitter account to clone
# 2- mastodon login
# 3- mastodon password
# 4- instance domain (https:// is automatically added)
PATH="/tootbot"
cd "$PATH/telesur_en"
../source/tootbot.py telesurenglish me+telesur_en@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/telesur_es"
../source/tootbot.py teleSURtv me+telesur_es@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/postillon"
../source/tootbot.py Der_Postillon me+postillon@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/telepolis"
../source/tootbot.py telepolis_news me+telepolis@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/granma"
../source/tootbot.py Granma_English me+granma@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60