VKSlaves
Asynchronous api wrapper for the game from vk.com called "slaves"
Example of usage
import asyncio
from vkslaves import SlavesAPI
from vkslaves.errors import SlaveAreLockedError, NotEnoughMoneyError
slaves_api = SlavesAPI(
app_auth="vk_access_token_settings=friends,status&vk_app_id=7794757..."
)
async def main():
await slaves_api.start()
print(slaves_api.me.balance)
user = await slaves_api.user(1)
print(user.master_id)
try:
await svales_api.buy_slave(1)
except SlaveAreLockedError:
print(" Oh no :( ")
except NotEnoughMoneyError:
print(" I need more money :( ")
asyncio.run(main())
I'm too lazy to write documentation, just look at the names of the functions and docstrings