Skip to content
forked from stefan2200/TWB

Python based bot for Tribal Wars

Notifications You must be signed in to change notification settings

joaonunatings/TWB

 
 

Repository files navigation

New in 1.5

  • Nice configuration dashboard
  • Various bug fixes

New in 1.4.4

  • Fixed snob (both systems working again)
  • Fixed various crashes and bugs
  • Configurable delay between requests (0.7 for fast, 2.0 for very slow)

New in 1.4.2

  • Automatically add new villages once conquered
  • Working attack simulator (partially)
  • Integrated farm manager into core code
  • Few bug fixes

New in v1.4.1

  • Automatic upgrading of out-dated config files
  • Removed selenium (inc. Web Driver)
  • How-To readme
  • Minor bug-fixes

New in v1.4

  • Reworked config methods so the bot works with all config versions (with warnings tho)
  • Automatic requesting and sending support
  • Attack / resource flag management
  • Automatic evacuation of high-profile units (snob, axe)
  • Found out why snob recruiting was not working (fix in progress)
  • Minor bug-fixes

When migrating from v1.1 please delete the cache/villages folder

Features:

  • Cooperative mode (you can keep playing using the browser while the bot manages stuff in the background)
  • Building management
  • Defence management
  • Troop management
  • Flag management
  • Automatically adds conquered villages
  • Farm management
  • Market management
  • Premium market (free premium points :D)
  • Research management (including level systems)
  • Automatic snob creation
  • Report management
  • ReCaptcha "bypass" by using browser cookie string (bot works if browser session is valid)

How To:

  • Install Python 3.x

  • Install the requirements (pip install -r requirements.txt)

  • Either copy config.example.json to config.json and edit the following things:

    • add at least the endpoint and server
    • change the village_template configuration section to your needs
  • Or just run python twb.py and enter the requested information

  • Start the bot by running python twb.py and supply the cookie string from your browser

  • If login works you can adjust the config.json to your needs, it will automatically reload on change.

  • Your villages will be added to the config automatically, disable the "managed" parameter to make the bot skip the village

  • Additional properties can be tweaked by running the manager.py script

  • You might want to set the bot user-agent in core/request.py to your own user agent. They probably wont notice but just in case :)

You can find the cookie string in the following location (Chrome):

Screenshot

You need to use the cookie: header value

optional: If everything is set-up correctly and the bot is running you can cd into the webmanager directory and start the bot interface by running server.py. You can access this dashboard by visiting http://127.0.0.1:5000/ in your browser. A lot of new features will be added to the dashboard soon.

More information about configuring the bot can be found in the readme directory!

About

Python based bot for Tribal Wars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.8%
  • HTML 7.1%
  • Shell 0.1%