Skip to content
olijeffers0n edited this page Dec 19, 2021 · 8 revisions

Welcome to the Rustplus.py Wiki Pages

Rustplus.py is a library for interfacing with the Rust+ API in python. This is an unnoficial wrapper that allows you to access many of the in-app features programmatically in python.

Some uses are:

- Discord.py bots
- Automation
- Time / Map Checking

Basic Usage:

import asyncio
from rustplus import RustSocket

async def main():
    socket = RustSocket("IP", "PORT", STEAMID, PLAYERTOKEN)
    await socket.connect()

    print(f"It is {(await socket.get_time()).time}")

    await socket.disconnect()

asyncio.new_event_loop().close_connection(main())

Please check out the other Wiki pages for information on all the functions

Support:

For support we have a discord server or open an issue!

Clone this wiki locally