2 releases
0.0.2 | May 16, 2023 |
---|---|
0.0.1 | May 8, 2023 |
#37 in #bot-framework
Used in 3 crates
135KB
2.5K
SLoC
Composure
Yet another Discord bot framework with, but with a specific goal in mind.
The Discord API is moving in a clear direction - interactions. Interactions are an easy way to provide interactivity. Fully featured gateway bots have integrated interactions very well, but still require a dedicated server to be able to run. Thats where Composure comes in.
Composure is a lightweight interaction bot that aims to run on the edge. Everything is moving onto the edge - why not Discord bots? Composure is a frameowrk to parse and respond to interactions.
Features
- Parse interactions
- Flexible adapter system
Adapters
Adapters are responsible for verifying the request, parsing the request body, then responding with an interaction response. Essentially, adapters hook everything together, it is a step above the raw frameowrk.
Adapters |
---|
Cloudflare |
Todo
- Explore more adapters
- Create macro to simplify command tree
- Handle message component interaction
- Handle autocomplete interaction
- Handle modal submit interaction
Dependencies
~4–5MB
~98K SLoC