Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/breqdev/flask-discord-interactions
A Flask extension to enable declarative definitions for Discord slash commands.
https://github.com/breqdev/flask-discord-interactions
asyncio discord discord-bot discord-interactions discord-python discord-slash-commands flask flask-discord-interactions flask-extension http http-server python3 quart server-side
Last synced: 26 days ago
JSON representation
A Flask extension to enable declarative definitions for Discord slash commands.
- Host: GitHub
- URL: https://github.com/breqdev/flask-discord-interactions
- Owner: breqdev
- License: mit
- Created: 2021-01-03T05:55:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T15:03:17.000Z (almost 2 years ago)
- Last Synced: 2024-12-10T02:10:31.856Z (about 1 month ago)
- Topics: asyncio, discord, discord-bot, discord-interactions, discord-python, discord-slash-commands, flask, flask-discord-interactions, flask-extension, http, http-server, python3, quart, server-side
- Language: Python
- Homepage: https://flask-discord-interactions.readthedocs.io
- Size: 1.36 MB
- Stars: 57
- Watchers: 4
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- discord-api-libs - flask-discord-interactions - A Flask extension to enable declarative definitions for Discord slash commands. (Libraries / Python)
README
# Flask-Discord-Interactions
This is a Flask extension that lets you write Discord Application Commands using a decorator syntax similar to Flask's `@app.route()` or Discord.py's `@bot.command()`.
```
@discord.command()
def ping(ctx):
"Respond with a friendly 'pong'!"
return "Pong!"
```Full documentation is available on [readthedocs](https://flask-discord-interactions.readthedocs.io/).