Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

dvemnt/barbot

Repository files navigation

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

About

Create your bot for barbars.ru (Python).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages