Create your bot for barbars.ru
pip install barbot
Syntax of barbot.conf
[account]
username = YOUR-USERNAME
password = YOUR-PASSWORD
from barbot import barbot
bot = barbot.Bot('barbot.conf') # configuration.
bot.change_game('towers') # change game to 'towers'.
bot.entry() # enter to game.
actions = bot.get_actions() # get available actions.
bot.move(actions['attack']['tower']) # attack enemy tower.
Also see example bot.
In development. See docstrings.
Before run tests you need add valid username and password to barbot.conf.
nosetests -v
or
python tests.py
See CHANGELOG.md
See LICENSE