logiksystems / hephaestus-framework
The Hephaestus Framework.
0.0.0
2024-05-03 14:24 UTC
Requires
- php: ^8.1.0
- clue/stdio-react: ^2.6
- illuminate/database: ^10.0
- illuminate/log: ^10.0.0
- laravel-zero/framework: ^10.0.0
- nunomaduro/termwind: ^1.0.0
- react/async: ^4.2
- simplito/elliptic-php: ^1.0
- team-reflex/discord-php: ^7.3
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.15.1
- mockery/mockery: ^1.6
- pestphp/pest: ^2.22
README
Hephaestus
- Define Interaction Handlers on the move
- Defining APPLICATION_COMMAND
- Creating a file in the good directory (currently: `/app/InteractionHandlers/SlashCommands`)
- Extending the \App\Framework\InteractionHandlers\ApplicationCommands\AbstractSlashCommand in your new php class.
- You must specify `name` and `description` property.
- 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).