Features
Using the team-reflex/discord-php-package, this module offers a drush-command to start the included ReactPHP-loop and dispatches Symfony-events for certain things that happen inside it.
Use-cases/examples for ECA (see attachment)
- Log a watchdog-message when the DiscordPHP-loop is ready
- Send a reply when a certain message is posted in a channel
Make sure that you enable the ECA-submodule if you want to import that example-model.
A typed-data definition and a normalizer for the DiscordPHP Message-class is also present, this allows you to see which tokens are available when those Symfony-events are fired.
Post-Installation
- Generate a bot and write down its token
- Change the installed key-configuration by pasting your Discord-bot token
Additional Requirements
- For the
discrd_php_eca-submodule, the ECA-module is required
Recommended modules/libraries
Community Documentation
Project information
- Project categories: Automation, Developer tools, Integrations
- Ecosystem: ECA: Event - Condition - Action
3 sites report using this module
- Created by lammensj on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

