Skip to main content

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)

Uploaded Source

Built Distribution

discourtesy-0.1.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page