Commit Graph

43 Commits (118832036ef47a00fb6e5298b5c66e37bcb67513)

Author SHA1 Message Date
trivernis 118832036e
Remove lavalink dependencies and update to new serenity 2 years ago
trivernis 2ffdd1c9f9
Replace log with tracing
Signed-off-by: trivernis <trivernis@protonmail.com>
2 years ago
trivernis 39254143a9
Update dependencies and add reset command for lavalink
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis ef6bb00b21
Add equalize command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis df2f4786fd
Add equalizer command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 4f250b5375
Fix database loaded songs not having a thumbnail
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis b2ba31a9e9
Reimplement all music related functionality in MusicPlayer struct
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6876a1bb1a
Change music backend to lavalink
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6f4d9df4b7
Switch to youtube-metadata for basic video information fetching
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 9cc9b720e2
Fix song database lookup being slow with spotify playlists
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 274804ed8c
Change DJ role check to be a serenity check
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0300966e56
Fix unavailable stored videos causing songs not to be played
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 658bc7fdc5
Add feedback button and improve song results
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 9931e75d8f
Add automatically adding youtube songs to store
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 8d6ed995e0
Improve error handling with forward_error macro
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis eede854ad4
Fix skipping causing songs to unpause
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 80289e5590
Add remove_song command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis bba12ff763
Add move_song command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis a98f401fbe
Change queue command to accept query and display an embed
The queue command now displays an embed with pagination and
allows for songs to be queried by providing arguments. Each argument
is interpreted as a keyword that is searched for.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 411dd83240
Add controls to now playing message and fix sticky menu
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis c6b80f8abd
Add sticky option to menus
Menus can now be created as sticky menus. When new messages appear
in the channel, the sticky message will be resent to be the latest
one in the channel. It only get's recreated every ten seconds max
to avoid getting ratelimited.
To work with recreatable menus, the message handle returned by
the menu is now wrapped into an Arc<RwLock<>>.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis bf29b51092
Change music NowPlaying embed to be created as a menu
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 4d290a5091
Bump version and cleanup code
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 9d4ed2dfb5
Add qalc command and improve README
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 2d980111bc
Change database operations to be async
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0d43e8294e
Change dj role to be optional
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 69e7a2a18f
Add autodelete setting and sticky np embed
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f36cf5a477
Change now playing to update automatically
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f32228e61f
Remove prefix from music group
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 750ee7d0dc
Add lyrics command and format playlists list differently
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0cb0a4c47b
Add command to manage playlists
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6d75b840b4
Switch to diesel with postgres for the database
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f0d2111628
Add pekofy command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 5ab22fd343
Add feature to automatically leave when the voicechannel is empty
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6c9df7e044
Add shutdown and pause command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis b4e874ae07
Add logging with fern
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 288675c2ea
Change song fetching to be lazy
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis dd5c9a3673
Add pagination to spotify and thread count lock for ytdl
Add pagination to the spotify wrapper to retreive all
songs in a playlist.
Add a thread count lock to the youtube-dl process to avoid
starting too many at once.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis ca1f9e7ecf
Add spotify url support for music
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 8a94518747
Add querying to play command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis b6dd726c17
Reimplement queue and add guild settings
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 1d0fa1816c
Add hooks and README
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis a6a603dbb5
Add music commands with songbird
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago