Пример #1
0
def main():
    if len(sys.argv) > 6:
        print("You did not write the correct system variables")
        return

    url = sys.argv[1]
    username = sys.argv[2]
    password = sys.argv[3]
    language = sys.argv[4]
    targets = sys.argv[5].split(",")

    bot = Bot.GameBot(url, username, password, language)
    try:
        bot.start()
        bot.login()
        bot.record_raider_rank()
        bot.send_attacks(targets)
        bot.submit()
    except ElementClickInterceptedException:
        bot.submitError()

    sleep(5)
Пример #2
0
def main():
    if sys is None or len(sys.argv) < 3:
        print("You did not write the correct system variables")
        return

    username = sys.argv[1]
    password = sys.argv[2]
    url = "http://bgmafia.com/auth/login"
    url_search = "http://bgmafia.com/matchmaker"
    min_level = "21"
    max_level = ""
    max_respect = "30000000"

    bot = Bot.GameBot(url, username, password, min_level, max_level, max_respect, url_search)
    try:
        bot.start()
        bot.login()
        bot.check_status()
        bot.submit()
    except ElementClickInterceptedException:
        print(ElementClickInterceptedException)
        bot.submit_error()
    sleep(1)