Непереведенная документация
Settings
At the moment settings are described only in settings.py
. Here is an example of settings.yaml
:
vk:
remixsid: <VK.com `remixsid` cookie>
access_token: <VK.com API access token>
bot:
no_experience: no # do not farm experience quests
is_trainer: yes # train arena prediction model nightly
arena:
schedule_offset: 01:00:00 # shift time from the default one
friend_ids:
- 123456789
- 123456790
shops:
- Печать пастыря
- Орион
- Йорген
- Зелье титана
- Драконий щит - рецепт
- Рука славы
- Изначальное слово - рецепт
raid_missions:
- Чащоба Каданг
Trainer
Trainer is enabled by setting is_trainer
to true
. Typically, you only need one trainer per a single database. It will perform training for all bots using the same database.
Arena model trainer could be run manually via:
python -m bestmobabot.trainer -v
Trained model is then saved back to the database.
Storage
SQLite database is used as a sort of key-value store to preserve state between restarts:
- Arena and grand arena battle results
- Arena and grand arena enemies
- Authentication credentials
- API session
- Picked up gifts
- Arena win probability prediction model
The same database can be used by multiple bots. Actually, it is recommended that multiple bots use the same database in order to share the arena prediction model.
Warning. The database contains user IDs and Hero Wars API authentication tokens. Make sure that you remove them manually should you share your database.