Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revoltchat/revolt.py
Python wrapper for https://revolt.chat
https://github.com/revoltchat/revolt.py
aiohttp async asyncio bot hacktoberfest python revolt revolt-api-wrapper
Last synced: 3 months ago
JSON representation
Python wrapper for https://revolt.chat
- Host: GitHub
- URL: https://github.com/revoltchat/revolt.py
- Owner: revoltchat
- License: mit
- Created: 2021-08-17T23:21:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T20:33:27.000Z (5 months ago)
- Last Synced: 2024-07-19T14:14:51.909Z (4 months ago)
- Topics: aiohttp, async, asyncio, bot, hacktoberfest, python, revolt, revolt-api-wrapper
- Language: Python
- Homepage:
- Size: 326 KB
- Stars: 86
- Watchers: 5
- Forks: 37
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-revolt - Revolt.py - Official Python library for Revolt. (💻 API Libraries / Python)
README
# Revolt.py
An async library to interact with the https://revolt.chat API.
You can join the support server [here](https://rvlt.gg/FDXER6hr) and find the library's documentation [here](https://revoltpy.readthedocs.io/en/latest/).
## 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](https://github.com/revoltchat/revolt.py/blob/master/examples).
```py
import revolt
import asyncioclass 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())
```