Files
Lunaris2.0/Bot
2024-04-15 00:00:38 +02:00
..
2024-04-15 00:00:38 +02:00
2024-04-14 21:43:25 +02:00
2024-04-14 21:43:25 +02:00
2024-04-14 23:01:58 +02:00
2024-04-14 21:43:25 +02:00
2024-04-14 21:43:25 +02:00
2024-04-14 16:57:18 +02:00

How commands from Discord gets executed

flowchart TD
    Program[Program] -->|Register| EventListener
    EventListener[DiscordEventListener] --> A

    A[MessageReceivedHandler] -->|Message| C{Send to correct command by 
            looking at commandName}

    C -->|JoinCommand| D[JoinHandler]
    C -->|PlayCommand| E[PlayHandler]
    C -->|HelloCommand| F[HelloHandler]
    C -->|GoodbyeCommand| G[GoodbyeHandler]

Program registers an event listener DiscordEventListener which publish a message :

await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);