composure

Crates.iocomposure
lib.rscomposure
version0.0.2
sourcesrc
created_at2023-05-08 20:32:50.342301
updated_at2023-05-16 15:36:43.383724
descriptionDiscord bot framework for running on the edge
homepage
repositoryhttps://github.com/BlueFrog130/composure-rs
max_upload_size
id860063
size145,544
Adam Grady (BlueFrog130)

documentation

README

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
Commit count: 20

cargo fmt