Skip to content

Repository files navigation

Revolt.py

This project is archived and is no longer receiving updates.

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.

importrevoltimportasyncioclassClient(revolt.Client):
asyncdefon_message(self, message: revolt.Message):
ifmessage.content=="hello":
awaitmessage.channel.send("hi how are you")
asyncdefmain():
asyncwithrevolt.utils.client_session() assession:
client=Client(session, "BOT TOKEN HERE")
awaitclient.start()
asyncio.run(main())

About

Python wrapper for Stoat (unmaintained)

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

111 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages