mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-09 06:09:39 +00:00
Create readme.md
This commit is contained in:
20
Bot/Handler/MusicPlayer/PlayCommand/readme.md
Normal file
20
Bot/Handler/MusicPlayer/PlayCommand/readme.md
Normal file
@@ -0,0 +1,20 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
PlayHandler --> EnsureConnected
|
||||
EnsureConnected --> GetPlayer
|
||||
GetPlayer --> SearchAsync
|
||||
SearchAsync --> SearchResponse
|
||||
SearchResponse --> PlayTrack
|
||||
PlayTrack --> NowPlayingEmbed
|
||||
```
|
||||
|
||||
| Name | Description |
|
||||
|--|--|
|
||||
| PlayHandler | Holds the logic for playing songs |
|
||||
| GetPlayer | Joins voice channel, produces chat resposne |
|
||||
| EnsureConnected | Makes sure the client is connected |
|
||||
| SearchAsync | Searches for songs information |
|
||||
| SearchResponse | Handling possible errors from the response of SearchAsync |
|
||||
| PlayTrack | Plays the song |
|
||||
|
||||
There is also OnTrackEnd, when it get called an attempt is made to play the next song in queue.
|
||||
Reference in New Issue
Block a user