rhiever / TwitterFollowBot

A Python bot that automates several actions on Twitter, such as following users and favoriting tweets.
GNU General Public License v3.0
1.3k stars 448 forks source link

my_bot = TwitterBot, my_bot = TwitterBot() problem #126

Open LeoKolade opened 7 years ago

LeoKolade commented 7 years ago

hello i'm really confused here as im VERY NEW to programming. Any time i post my_bot = TwitterBot , it seems to work but then the next command i put in my_bot.send_tweet("Hello People") give me this TypeError: unbound menthod send_tweet() must be called with TwitterBot instance as first argument (got str instance instead)

if i use my_bot = TwitterBot() it gives me

my_bot = TwitterBot() Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\TwitterFollowBot__init.py", line 42, in init self.bot_setup(config_file) File "C:\Python27\lib\site-packages\TwitterFollowBot\init__.py", line 78, in bot_setup with open(config_file, "r") as in_file: IOError: [Errno 2] No such file or directory: 'config.txt'

i am soooo confused please help

chemostafa commented 6 years ago

Whene you open :

cd TwitterFollowBot

Did you see file named config.txt ?

Any way I like you new in the programming but