Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

stoatchat/python-client-sdk

Revolt.py

This project is archived and is no longer receiving updates.

An async library to interact with the https://revolt.chat API.

You can join the support server here and find the library's documentation here.

Installing

You can use pip to install revolt.py. It differs slightly depending on what OS/Distro you use.

On Windows

py -m pip install -U revolt.py # -U to update

On macOS and Linux

python3 -m pip install -U revolt.py

Example

More examples can be found in the examples folder.

import revolt
import asyncio
class Client(revolt.Client):
 async def on_message(self, message: revolt.Message):
 if message.content == "hello":
 await message.channel.send("hi how are you")
async def main():
 async with revolt.utils.client_session() as session:
 client = Client(session, "BOT TOKEN HERE")
 await client.start()
asyncio.run(main())

AltStyle によって変換されたページ (->オリジナル) /