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
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())
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.7.tar.gz
(39.5 kB
view hashes)
Built Distribution
revolt.py-0.1.7-py3-none-any.whl
(54.0 kB
view hashes)
Close
Hashes for revolt.py-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ea42c1ae06b03049aecbbb937f89c537ab69666af269c180ee8a28205050b2 |
|
MD5 | 379fa62540ddd7b5584c90c6f983a145 |
|
BLAKE2b-256 | ec5824438b59b8d50148e0c66ab1e30a34abdb7ea934df0d60e44245d9e415f9 |