Python wrapper for the revolt.chat API
Project description
Revolt.py
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
revolt.py-0.1.10.tar.gz
(44.3 kB
view hashes)
Built Distribution
revolt.py-0.1.10-py3-none-any.whl
(61.8 kB
view hashes)
Close
Hashes for revolt.py-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66188985ec26f3257ea2ddf5f7bff6b37121808dc59a423be83755d2d058de0a |
|
MD5 | e4beeef5a60fcedb7508f7beaf084b6b |
|
BLAKE2b-256 | 4925ae583abe7ef8c3135ff21a7576475c2d5cef29adfa0aa1b62263c2a4874b |