Python wrapper for Revolt https://revolt.chat
88f29e3a96
Bump actions/checkout from 2.4.0 to 3 |
||
---|---|---|
.github | ||
defectio | ||
docs | ||
examples | ||
tests | ||
.all-contributorsrc | ||
.darglint | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.readthedocs.yml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
codecov.yml | ||
mypy.ini | ||
noxfile.py | ||
poetry.lock | ||
pyproject.toml |
README.md
Defectio
defectio is a direct implementation of the entire Revolt API and provides a way to authenticate and start communicating with Revolt servers. Similar interface to discord.py
Example Usage
import defectio
client = defectio.Client()
@client.event
async def on_ready():
print("We have logged in.")
@client.event
async def on_message(message: defectio.Message):
if message.author == client.user:
return
if message.content.startswith("$hello"):
await message.channel.send("Hello!")
client.run("your token here")
Contribute
Join our server here
License
Licensed under an MIT license
Based on discord.py by Rapptz here
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Joshua Nixon 💻 |
Adam 💻 |
jotte 💻 |
Paul Makles 🐛 |
Cearaj 💻 |
jafreli 💻 |
Dark42ed 📖 |
FabrizioCoder 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!