tootbot/templates/run-bot.sh

27 lines
792 B
Bash
Raw Normal View History

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