mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-22 10:35:25 -04:00
e3bb82c71f941e809d2fd525d3a495fe0e7f4fdf
* refactor: add __slots__ to class definitions to save memory * Update revolt/channel.py Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com> * Update revolt/client.py Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com> * revert changes Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>
Revolt.py
An async library to interact with the https://revolt.chat api.
This library will be focused on making bots and i will not implement anything only for user accounts.
Support server: https://app.revolt.chat/invite/FDXER6hr
Documentation is here
Example
More examples 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%