Skip to content

winiciuscota/OG-Bot

Repository files navigation

#Ogame-bot

This bot is intended to provide automation for simple tasks in Ogame. At this point the bot should be able to work in all servers. At the beginning the bot could only build defenses, now it can do a variety of tasks

#Usage:

1 - Install the requirements:
pip install -r requirements.txt

2 - Modify the user-sample.cfg file and rename it to user.cfg

3 - The program also accepts two arguments. the first will override the DefaultMode and the second will override DefaultOriginPlanet

The currently supported modes are:

  • overview - logs overview data
  • explore - send expeditions and attack nearby inactive players
  • attack_inactive_planets - attack nearby inactive players
  • auto_build_defenses - build defenses
  • auto_build_defenses_to_planet - build defenses to planet x(must be one of your planets)
  • transport_resources_to_planet - transport resources from all of your planets to planet x(must be one of your planets)
  • transport_resources_to_weaker_planet - transport resources from all of your planets to the planet that has less buldings
  • auto_build_structure_to_weaker_planet - Build structure on the weaker planet
  • auto_build_structures - Build structures on planets
  • auto_research - Research on your homeplanet

e.g.:

python main.py -m explore - will run the bot on the explorer mode (send expeditions and attack inactive targets)

python main.py -m transport_resources_to_planet planet_name - will transport all resources to the planet_name planet (must be one of your planets)

4 - Have a nice day while the bot takes care of the boring parts =]

#Features:

  • Spend Resources on defenses
  • Transport resources from all of your planets into one of your planets
  • Auto spy inactive players nearby
  • Auto attack inactive players nearby
  • Send Expeditons
  • Overview player info
  • Build structures
  • Research Technologies

#Update

My ogame account has been banned almost 1 month ago due to using a bot. I had been using the bot for more than a year. It was configured to attack inactive planets 6~8 times a day so I was basically asking for someone to report me. I'll likely take a break for now, I don't have the time and motivation required to continue working on the bot. Maybe in the future I will resume the development and work to make the bot smarter, less detectable and support for python 3.

For the players that have used or plan on using the bot: I still don't think that the ogame team has any reliable tool to detect the use of bots. I think they have to rely on someone manually examining the logs. There will always be the risk of other players reporting you, be careful.

#Credits:

Many thanks to Rafał Furmański(http://rafal-furmanski.com/) for letting me use some snippets of his code (https://github.com/r4fek/ogame-bot).
Rafał Furmański's work was crucial for creating the functions to build defenses, send fleets and fetch galaxy's data

About

Automation for simple tasks in Ogame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages