logiksystems/hephaestus-framework

The Hephaestus Framework.

0.0.0 2024-05-03 14:24 UTC

This package is auto-updated.

Last update: 2024-11-03 15:54:01 UTC


README

Hephaestus

  • Define Interaction Handlers on the move
  • Defining APPLICATION_COMMAND
    1. Creating a file in the good directory (currently: `/app/InteractionHandlers/SlashCommands`)
    2. Extending the \App\Framework\InteractionHandlers\ApplicationCommands\AbstractSlashCommand in your new php class.
    3. You must specify `name` and `description` property.
    4. The `handle` method will be invoked when the bot receive an interaction associated with this handler.

TODO:

  • Support handling for
    • ☑️ APPLICATION_COMMAND. (Not totally implemented).
    • ❌ PING interactions.
    • ❌ APPLICATION_COMMAND_AUTOCOMPLETE interaction
    • ❌ MODAL_SUBMIT interaction
    • ☑️ MESSAGE_COMPONENT interaction. (Not totally implemented).