Quick Start
pip install rustplusimport asyncio
from rustplus import RustSocket, ServerDetails
async def main():
server_details = ServerDetails("IP", "PORT", STEAMID, PLAYERTOKEN)
socket = RustSocket(server_details)
await socket.connect()
print(f"It is {(await socket.get_time()).time}")
await socket.disconnect()
asyncio.run(main())time = await socket.get_time()
if isinstance(time, RustError):
print(f"Error Occurred, Reason: {time.reason}")Last updated
Was this helpful?