urt30arcon

Quake3 Async RCON Client


Keywords
Quake3, RCON
License
Apache-2.0
Install
pip install urt30arcon==1.2.1

Documentation

Quake3 Async RCON Client

Requirements

Usage

import asyncio

from urt30arcon import AsyncRconClient


async def async_main() -> None:
    client = await AsyncRconClient.create_client(host="127.0.0.1", port=27960, password="sekret")

    await client.bigtext("hello world")
    game = await client.game_info()
    if game.players:
        first_player = game.players[0]
        await client.slap(slot=first_player.slot)


if __name__ == '__main__':
    asyncio.run(async_main())