A Python library to wrap the Revolt API, made to be easy-to-use but powerful and feature rich.
Project description
pyrevolt
Installing pyrevolt
Python 3.10 or greater is required To install pyrevolt, you can run the following command:
# Linux/macOS command
python3 -m pip install pyrevolt
# Windows
py -m pip install pyrevolt
Using pyrevolt
This shows a very quick example of how to use pyrevolt. As a note, pyrevolt is still under heavy development and this example and the library as a whole may change.
import pyrevolt
@pyrevolt.OnMessage()
async def onMessage(channel: pyrevolt.Channel, author: pyrevolt.User, content: str) -> None:
print(f"{author.userID} in {channel.channelID}: {content}")
if content == "!ping":
await channel.Send(f"Pong! <@{author.userID}>")
bot = pyrevolt.Bot()
bot.run(token="TOKEN")
As the library expands, more examples will be added, but we expect users during the very initial development phases to read through the source in order to find how to develop (this will of course change over the development of the library).
Useful Information
Code Quality
Repository Information
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
Built Distribution
File details
Details for the file pyrevolt-0.1.0a0.tar.gz
.
File metadata
- Download URL: pyrevolt-0.1.0a0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3484d25b6c0f13d97fff81fdf91d4c8c2fade4f5e111f94cf7d5c9597d82008 |
|
MD5 | a2318d3b2e8fa8ce448ba2d8f12cf969 |
|
BLAKE2b-256 | 9d20f585d589540700449e5c6a8177bcabf750ff33be8ec99ab5c881e6c20c49 |
File details
Details for the file pyrevolt-0.1.0a0-py3-none-any.whl
.
File metadata
- Download URL: pyrevolt-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea8e78d37ee0d35fda8ee4f2f81b1fb3b9234408e23db187744dc690cf6ff98 |
|
MD5 | 0d6dbcbd65925c09c677b273fc07fb7a |
|
BLAKE2b-256 | 0135e9f2abec2fd0eb747464777689e732578215a071a419313a754f2f3bc5a0 |