/lsbot

A simple automation for the Browsergame www.leitstellenspiel.de

Primary LanguagePythonMIT LicenseMIT

Introduction

This bot automates the processes needed to get credits in the Browsergame www.leitstellenspiel.de

Explanation

Open Tasks / Future Features

  • new missions need to be generated using only the bot
  • automation of building Fire Stations
  • add more useable cars
  • handle shared accidents in accident list
  • handle timed accidents -> alert fire trucks just before the accident starts
  • handle also Ambulances and Police Cars
  • add error handling
  • solve all encoding problems

Installation

To run the python script you need Python 2.7 installed. You also need the packages 'mechanize', 'lxml' and 'requests'. When all of the above is installed just run python main.py from the console.

Usage

Since the bot is not able to generate new Missions (yet), you need to have a Browser Window with the game open at all times. You could install a plugin which refreshes the site every 1 minute. Then it's guaranteed that you get new missions. You could easily run this setup on a Raspberry Pi.

Disclaimer

This is my first Python Project. The Code quality could probably be optimized on many levels.

Using this Bot is against the Rules of the game Leitstellenspiel. Using it could get you banned. Use it on your own risk.

License

MIT License

Copyright (c) 2017 Joël Renk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.