GithubHelp home page GithubHelp logo

joeyjurjens / fest-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 15 KB

A unfair bot for the mobile game Bike Race that plays tournaments for you and wins them.

License: MIT License

Python 100.00%

fest-bot's Introduction

Unfair-Fest-Bot

A unfair bot for the mobile game Bike Race that plays tournaments for you and wins them.

Options

Inside unfair_fest_bot/config/config.json you got some options you can change:

"player": {
	"fest_id": "your_fest_player_account_id",
	"token": "your_fest_account_token"
},

The above is the setting for your account, you can get these by intercepting a http request from the game. Also a nice thing, the token never expires so once you have your token you can just keep using it!

Then we also got bot configurations:

"bot_configurations": {
	"auto_claim_tourneys": true,
	"auto_evolve": true,
	"spare_turbo_bikes": true,
	"play_before_end_in_seconds": 180
}

As of now, there's a limit of options and I'm not sure if I will create more. However, you can create options yourself & if you feel like it make a PR on it!

So let me explain what the options are for:

  • auto_claim_tourneys: If you have open tourney rewards, and you want the bot to claim them for you, you set this to true, if not you have to claim them yourself and can possibly run out of storage space if you don't do this regulary.
  • auto_evolve: If the bot claims rewards for you, and you have this option on, it will evolve the highest star bike for you with the reward item.
    • NOTE: This will not evolve the reward item if you don't have the bike in your garage yet!
  • spare_turbo_bikes: If you have auto_evolve on, it will evolve reward items even if it's a Turbo part, which I defenitly didn't like so I made this option. If you return this to true, it will never evolve turbo bike rewards!
  • play_before_end_in_seconds: When does the bot play the tournaments? If you set this too a high value, it will play them instantly after you join which can result in you setting times when no one else has yet & you may loose because you ran out of attempts. If you set it too low, you may end up not being able to set times before the tourneys ends. I figured 180 seconds works like a charm for me but you might want to play around with this a little.

How to run it?

In main,py, I have a very ugly statement:

    # Best way of doing this? No, probably not.
    while True:
        FestBot(fest_player).play_all_tourneys()

Meaning you can run python main.py or python3 main.py if python runs python 2 for you. You also need the requests libary installed (pip install requests)

The best way to run this, is using some hosting option like PythonAnywhere where you can run a always on task. This is nice, because if the script for some reason failed to stay running, it will just restart which I think is great. On PythonAnywhere you just need a $5 account in order to do this.

fest-bot's People

Contributors

joeyjurjens avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

fest-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.