Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
epicbot
tools
.gitignore
.travis.yml
README.md
bot.py
requirements.txt

README.md

Epic War Bot Build Status

Features

  • πŸ‘· Upgrades buildings.
  • πŸ‘· Cleans up extended areas.
  • πŸ‘· Upgrades units.
  • πŸ” Collects resources from production buildings.
  • 🍬 Sends mana to alliance members.
  • 🍬 Collects mana.
  • 🍬 Activates alliance daily gift.
  • 🍬 Collects alliance daily gift.
  • πŸ†˜ Sends help to alliance members.
  • πŸ†˜ Collects help from alliance members.
  • πŸ‘¦ Simulates user behavior by making random delays between requests.
  • πŸ† Participates in known bastion battles.
  • πŸ† Participates in PvP battles and uses heroes.
  • 🎲 Spins event roulette.
  • βœ”οΈ Farms Random War tasks.
  • πŸ“¨ Sends Telegram notification.

Scripts

File
bot.py Runs the bot once
tools/command-log.py Used to investigate a battle command log
tools/generate-library.py Used to generate static library content

Configuring

Environment variables

Variable
EPIC_WAR_TELEGRAM_TOKEN Telegram bot token
EPIC_WAR_TELEGRAM_CHAT_ID Telegram chat ID

Updating library

Use "Network" tab in a browser to look for a link like https://epicwar.cdnvideo.ru/vk/v0294/lib/lib.json.gz. Then pass it to tools/generate-library.py.

Adding new resource, building and unit types

  • Update corresponding class in epicbot.enums.
  • Remember to update Sets fields.