barbot

Create your bot for barbars.ru.


Keywords
barbars, ru, bot, game
License
MIT
Install
pip install barbot==1.2.2

Documentation

Barbot

Create your bot for barbars.ru

Installation

pip install barbot

Configuration

Syntax of barbot.conf

[account]
username = YOUR-USERNAME
password = YOUR-PASSWORD

Usage

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.

Documentation

In development. See docstrings.

Tests

Before run tests you need add valid username and password to barbot.conf.

nosetests -v

or

python tests.py

Changelog

See CHANGELOG.md

License

See LICENSE