Open Deio opened 8 years ago
Do you see any error on the terminal? You do not have to specify the path if your bot.py and config.txt are in the same directory. Most common errors are due to paths. Add the following code in your bot.py before creating the bot instance to check if the config.txt existed on this path or not:
from TwitterFollowBot import TwitterBot
import os.path
print os.path.isfile("/Users/user/Desktop/TwitterFollowBot-master/config.txt")
my_bot = TwitterBot("/Users/user/Desktop/TwitterFollowBot-master/config.txt")
my_bot.sync_follows()
my_bot.auto_follow("yay")
my_bot.auto_follow_followers()
my_bot.auto_fav("yay", count=10)
my_bot.auto_rt("yay", count=10)
i am also runing into issues my i did exactly as you did and i am coming back with errors
`/usr/bin/python2.7 /home/m3lkia/PycharmProjects/killakaponebot/killacaponebot.py
True
Traceback (most recent call last):
File "/home/m3lkia/PycharmProjects/killakaponebot/killacaponebot.py", line 6, in
Process finished with exit code 1
`
I have no idea what I am doing wrong. I followed all of the instructions but my bot still wouldn't work. I have all of the right consumer numbers and outh numbers aswel. I made a python script that creates an instance of the bot. That script is called bot.py. Here is everything I have written to try and get it to work:
config.txt
bot.py
And this is my cron Job
1 * * * * python /Users/user/Desktop/TwitterFollowBot-master/bot.py