DiscordPHP
Security covered
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
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.