edoBot.add_links_my_home()
    else:
        usage.print_usage(8)
    edoBot.crawl()  #here start the bot
    edoBot.close()
    timee = datetime.datetime.now()
    add_result.add_stat(edoBot.username, timee, edoBot.likes, edoBot.retweets,
                        edoBot.followers)

# if -u and -s
elif ((email_email != '') and (not keywords_flag) and stat_flag
      and (not my_flag) and (not info_flag) and (not help_flag)
      and (not follow_flag)):
    email_password = getpass.getpass('Insert password for ' + email_email +
                                     ':')  # password input via getpass
    analyze_stat.check_stat(email_email, email_password)

# if -i
elif ((email_email == '') and (not stat_flag) and (not my_flag)
      and (not keywords_flag) and (not help_flag) and (info_flag)
      and (not follow_flag)):
    usage.print_usage(7)

# if -h
elif ((email_email == '') and (not stat_flag) and (not my_flag)
      and (not keywords_flag) and help_flag and (not info_flag)
      and (not follow_flag)):
    usage.print_usage(0)
# if -f
elif ((email_email != '') and (not keywords_flag) and not (stat_flag)
      and follow_flag and (not my_flag) and (not info_flag)
                    result = "likes: " + str(
                        self.likes) + ' | ' + "retweets: " + str(self.retweets)
                    print(datetime.datetime.now())
                    print(result)
                    time.sleep(self.generate_random())
                except Exception as ex:
                    time.sleep(20)
        print('Finished!')


if ((email_email != '') and (email_password != '') and (not stat_flag) and
    ((my_flag and (not hashtag_flag)) or (hashtag_flag and (not my_flag)))):
    edoBot = TwitterBot(email_email, email_password, 0, 0, hashtags)
    authenticated = edoBot.login()
    if (authenticated):
        check_user.check_if_user_exists(edoBot.username, edoBot.password)
        if (hashtag_flag and (not my_flag)):
            edoBot.add_links()
        elif (my_flag and (not hashtag_flag)):
            edoBot.add_links_my_home()
        else:
            usage.print_usage()
        edoBot.crawl()
        timee = datetime.datetime.now()
        add_result.add_stat(edoBot.username, timee, edoBot.likes,
                            edoBot.retweets)
elif ((email_email != '') and (not password_flag) and (not hashtag_flag)
      and (stat_flag) and (not my_flag)):
    analyze_stat.check_stat(email_email)
else:
    usage.print_usage()