s-a-ng / botted.gay-python

python bindings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

pip install git+https://github.com/s-a-ng/botted.gay-python.git

Usage

import botteddotgay as BotPool
import asyncio

async def main():
    BotPoolObject =  BotPool(
        API_KEY = "BOTTED-GAY-apikeyhere"
    )

    await BotPoolObject.init()

    Bots = await BotPoolObject.Allocate(
        RequestedBotAmount = 20
    )

    for Bot in Bots:
        await Bot.Launch(
            PlaceId = 1010,
            JobId = ""
        )

    for Bot in Bots:
        await Bot.WaitForJoin()

    for Bot in Bots:
        await Bot.Chat("hi")

    await asyncio.sleep(5)

    for Bot in Bots:
        await Bot.Disconnect()

asyncio.run(main())

About

python bindings


Languages

Language:Python 100.0%