Python wrapper for the revolt.chat API
Project description
Revolt.py
An async library to interact with the https://revolt.chat API. This library will only support bots and I will not implement anything exclusively for user accounts.
You can join the support server here and find the library's documentation here.
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.2.tar.gz
(30.2 kB
view hashes)
Built Distribution
revolt.py-0.1.2-py3-none-any.whl
(41.8 kB
view hashes)
Close
Hashes for revolt.py-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 780b7d2738873952626a66fc14d1b4ae40763299d839f82edda2bfeb5ae3adc2 |
|
MD5 | 244d82a3a10cfbf65d11d437b2c58153 |
|
BLAKE2b-256 | c38efc64ccb6cd6ee4a81aa71d4abdf49dc4c2d80ead0cd3c4cfdf7061900f38 |