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

  1. Generate a bot and write down its token
  2. Change the installed key-configuration by pasting your Discord-bot token

Additional Requirements

  • For the discrd_php_eca-submodule, the ECA-module is required

Community Documentation

Project information

Releases