A minimal framework to handle Discord interactions.
Project description
Discourtesy
Discourtesy is a minimal framework to handle Discord interactions.
Installation
Discourtesy requires Python 3.9 or higher.
The package is available on PyPi, so install it with pip
or another dependency manager.
pip install discourtesy
Introduction
import discourtesy
application = discourtesy.Application()
public_key = ""
application.set_public_key(public_key)
@discourtesy.command("beep")
async def beep_command(client, interaction):
return "boop"
application.add_plugin(__name__)
uvicorn filename:application
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discourtesy-0.1.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for discourtesy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a74f07ced43c8bf18197eeab8b92171cc15060dd32c4b42082246182c270f9 |
|
MD5 | 9f50e194e99f854498358d5c15428afd |
|
BLAKE2b-256 | f07ea58acb1bdf9eb2bb793b843e8f6eb85a85527b4e013e0d5e54d9fe035b09 |