mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-21 10:05:22 -04:00
452f1f45bcde2be6816d804694dc784a500bc7cb
Revolt.py
An async library to interact with the https://revolt.chat API. This library will only support bots and I will not implement anything exclusively for user accounts.
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
import aiohttp
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 aiohttp.ClientSession() as session:
client = Client(session, "BOT TOKEN HERE")
await client.start()
asyncio.run(main())
Releases
10
Languages
Python
99.9%
Just
0.1%