Skip to main content

Tribal Wars Bot

Project description

Tribal Wars Bot (TWB)

An open source bot for the Tribal Wars game

Update 1.8 notice

If you experience issues starting the bot you might have to update the dependencies by running the following command in the bot folder: python -m pip install --upgrade requirements.txt

We also created a Discord server so you can seek help from other users.

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twbot-2.0.1.tar.gz (143.4 kB view details)

Uploaded Source

Built Distribution

twbot-2.0.1-py3-none-any.whl (172.2 kB view details)

Uploaded Python 3

File details

Details for the file twbot-2.0.1.tar.gz.

File metadata

  • Download URL: twbot-2.0.1.tar.gz
  • Upload date:
  • Size: 143.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for twbot-2.0.1.tar.gz
Algorithm Hash digest
SHA256 56b4a527d4d09503a004fe7e48e0566f8769ea9a75040c10800d90e46b3a3b5e
MD5 8a46b989d1c652b54edb4000a6e9969d
BLAKE2b-256 366dc4991501cd0f2bad6b10ddd6c307c2e152b7ab37cf0ee891562189ab9974

See more details on using hashes here.

File details

Details for the file twbot-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: twbot-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 172.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for twbot-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab5ee4ddf5bd309ed7955301f87be98a69c0ae40e464904364fa51804058d981
MD5 65f3704f4d5d5f588bbe68830eff9a2b
BLAKE2b-256 d9eda504a7606d4d2506899e3779ae0629f82145ff12a2f12707d30abf5271c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page