cquest / tootbot

python bot to clone tweets to a mastodon account
GNU Affero General Public License v3.0
101 stars 35 forks source link

tootbot.py does not work in a cronjob. #28

Closed dertuxmalwieder closed 1 year ago

dertuxmalwieder commented 1 year ago

I wrote an update-toots.sh script:

cd /home/tux/tootbot
/usr/local/bin/python3 ./tootbot.py <account> <login> <password> <instance>

However, while running ./update-toots.sh manually works just fine, running it from cron always returns 0 tweets. Why?

dertuxmalwieder commented 1 year ago

Solution: twint is most likely installed into the user’s home folder (in my case, ~/.local), so cron could not find it. Fixed by loading the .profile first.