mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 08:00:37 +00:00
Compare commits
2 Commits
1717277891
...
1717277946
| Author | SHA1 | Date | |
|---|---|---|---|
| e3df4505fe | |||
| 3daf18e053 |
@@ -8,8 +8,6 @@ flowchart TD
|
||||
|
||||
A --> |Message| f{If bot is mentioned}
|
||||
f --> v[ChatHandler]
|
||||
v --> o[Ollama Server]
|
||||
o --> v
|
||||
|
||||
A2[SlashCommandReceivedHandler] -->|Message| C{Send to correct command by
|
||||
looking at commandName}
|
||||
@@ -19,6 +17,11 @@ flowchart TD
|
||||
C -->|HelloCommand| F[HelloHandler]
|
||||
C -->|GoodbyeCommand| G[GoodbyeHandler]
|
||||
```
|
||||
Program registers an event listener ```DiscordEventListener``` which publish a message :
|
||||
|
||||
```c#
|
||||
await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);
|
||||
```
|
||||
|
||||
## Handler integrations
|
||||
```mermaid
|
||||
@@ -28,11 +31,7 @@ flowchart TD
|
||||
F[HelloHandler] --> Disc[Discord Api]
|
||||
G[GoodbyeHandler] --> Disc[Discord Api]
|
||||
v[ChatHandler] --> Disc[Discord Api]
|
||||
v --> o[Ollama Server]
|
||||
o --> v
|
||||
E --> Lava[Lavalink]
|
||||
```
|
||||
|
||||
Program registers an event listener ```DiscordEventListener``` which publish a message :
|
||||
|
||||
```c#
|
||||
await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user