Files
python-client-sdk/README.md
T
Ed L ccd379b24b update repo links, grammar (#24)
* chore: update repo links, grammar

* Update revolt/http.py

Co-authored-by: Zomatree <39768508+Zomatree@users.noreply.github.com>
2022-01-03 20:50:16 +00:00

877 B
Executable File

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())