yousefissa / Twitter-Follow-and-Unfollow-Bot

A bot that allows you to follow and unfollow users on twitter. Also allows you to do many other things.
119 stars 40 forks source link

I'm getting this error message #11

Open snoock opened 6 years ago

snoock commented 6 years ago

Enter the number of the action that you want to take: 3 Do you want to keep going? Enter yes or no. yes

Traceback (most recent call last): File "D:\tweet\twitterBot.py", line 344, in main_menu() File "D:\tweet\twitterBot.py", line 67, in main_menu Continue() File "D:\tweet\twitterBot.py", line 328, in Continue keep_going = input('Do you want to keep going? Enter yes or no. \n' File "", line 1, in NameError: name 'yes' is not defined

sorry I'm a noob

axeforeverjumo commented 6 years ago

Yes, the problem is your are inserting to a String variable this: continue = yes You have to make it like this: continue = 'yes' for that not write

yes

Write on the terminal

'yes'

And its going to work perfect.

Wrexen commented 6 years ago

Getting the same error. Even if i type 'yes' the bot will restart at the main menu. Someone please can help ?

Greeting

brahmanggi commented 6 years ago

bump

SPIRY-RO commented 6 years ago

Same