mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 16:10:36 +00:00
Compare commits
3 Commits
1717277838
...
1717278872
| Author | SHA1 | Date | |
|---|---|---|---|
| 03150a3d04 | |||
| 32b6e09336 | |||
| e3df4505fe |
@@ -7,9 +7,7 @@ flowchart TD
|
|||||||
EventListener[DiscordEventListener] --> A2[SlashCommandReceivedHandler]
|
EventListener[DiscordEventListener] --> A2[SlashCommandReceivedHandler]
|
||||||
|
|
||||||
A --> |Message| f{If bot is mentioned}
|
A --> |Message| f{If bot is mentioned}
|
||||||
f --> v[ChatHandler]
|
f --> |ChatCommand| v[ChatHandler]
|
||||||
v --> o[Ollama Server]
|
|
||||||
o --> v
|
|
||||||
|
|
||||||
A2[SlashCommandReceivedHandler] -->|Message| C{Send to correct command by
|
A2[SlashCommandReceivedHandler] -->|Message| C{Send to correct command by
|
||||||
looking at commandName}
|
looking at commandName}
|
||||||
@@ -25,6 +23,11 @@ Program registers an event listener ```DiscordEventListener``` which publish a m
|
|||||||
await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);
|
await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|Name| Description |
|
||||||
|
|--|--|
|
||||||
|
| SlashCommandReceivedHandler | Handles commands using ``/`` from any Discord Guild/Server. |
|
||||||
|
| MessageReceivedHandler| Listens to **all** messages. |
|
||||||
|
|
||||||
## Handler integrations
|
## Handler integrations
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TD
|
flowchart TD
|
||||||
@@ -33,5 +36,14 @@ flowchart TD
|
|||||||
F[HelloHandler] --> Disc[Discord Api]
|
F[HelloHandler] --> Disc[Discord Api]
|
||||||
G[GoodbyeHandler] --> Disc[Discord Api]
|
G[GoodbyeHandler] --> Disc[Discord Api]
|
||||||
v[ChatHandler] --> Disc[Discord Api]
|
v[ChatHandler] --> Disc[Discord Api]
|
||||||
|
v --> o[Ollama Server]
|
||||||
|
o --> v
|
||||||
E --> Lava[Lavalink]
|
E --> Lava[Lavalink]
|
||||||
```
|
```
|
||||||
|
|Name| Description |
|
||||||
|
|--|--|
|
||||||
|
| JoinHandler| Handles the logic for **just** joining a voice channel. |
|
||||||
|
| PlayHandler| Handles the logic for joining and playing music in a voice channel. |
|
||||||
|
| HelloHandler| Responds with Hello. (Dummy handler, will be removed)|
|
||||||
|
| GoodbyeHandler| Responds with Goodbye. (Dummy handler, will be removed)|
|
||||||
|
| ChatHandler| Handles the logic for LLM chat with user. |
|
||||||
|
|||||||
Reference in New Issue
Block a user