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.11.tar.gz
(44.3 kB
view hashes)
Built Distributions
revolt_py-0.1.11-py3-none-any.whl
(65.2 kB
view hashes)
revolt.py-0.1.11-py3-none-any.whl
(65.2 kB
view hashes)
Close
Hashes for revolt_py-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4578b365b2eff39e36c21ae468897b89e2eaa6f80bd8d5a4b2151a56834bf452 |
|
MD5 | 29930f1c69305e69fffb45d5c1140a2d |
|
BLAKE2b-256 | 71eb2a0f666304ea1b88b5933434f0907e473708fa9f624b6b688595a58fba2f |
Close
Hashes for revolt.py-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 053e38f7573994e553aabbfddda9edc65a9410f49618abc5f024e3a1482a99af |
|
MD5 | 7c7c0ccc4884f95242e0898fdd9a126d |
|
BLAKE2b-256 | bf7546264fe643c32d2de379e0bd6c62788b7fb022a72f179137bca2cc24557f |