Commit Graph

259 Commits (main)
 

Author SHA1 Message Date
trivernis 6b4863fb0a
Merge branch 'main' into develop 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 86f1cdcd46
Remove ipfs action
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis a9c559459a
Merge pull request #16 from Trivernis/actions
Change version of ipfs action
3 years ago
trivernis 3fc813bc2d
Change version of ipfs action
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis e2f9027fb9
Merge pull request #15 from Trivernis/develop
Develop
3 years ago
trivernis 26cc07abec
Bump version
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 77fd292763
Merge branch 'develop' of github.com:Trivernis/2b-rs into develop 3 years ago
trivernis 9931e75d8f
Add automatically adding youtube songs to store
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis d4f50d4367
Merge pull request #14 from Trivernis/actions
Add ipfs action to release build
3 years ago
trivernis 05439fbad6
Add ipfs action to release build
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis c8ab28e4e4
Add database to store spotify-youtube mappings
When playing a single youtube song the equivalent song will be
searched on spotify and stored in the database. The assumption
is that a user prefers studio versions of songs from youtube
which are harder to search for automatically.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis 25e217c5eb
Merge pull request #13 from Trivernis/develop
Develop
3 years ago
trivernis a733e6a2ac
Bump version
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 49f4673213
Add aliases to qalc command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis b87b1770fc
Add autosharding
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f1c65bb1e2
Tweak release build for smaller binaries
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 786925d8e4
Switch to stable toolchain and add more info to stats command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis b2db137663
Merge pull request #12 from Trivernis/develop
Develop
3 years ago
trivernis 8e71317d51
Bump version
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 bbf9f1ef93
Add ephemeral message and use it for most music command answers
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 3d02241642
Merge pull request #11 from Trivernis/develop
Develop
3 years ago
trivernis abd170521d
Bump version
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 619d8aa30b
Add pain command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis cfbd68a7c2
Change structure of database module
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 ad69f78bd6
Merge pull request #10 from Trivernis/develop
Develop
3 years ago
trivernis 0f47c5b942
Bump version
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 80dfe4af07
Add number of times used to stats command
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis a2d2d5d930
Add statistics table to database to store command statistics
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 29e670da66
Add hint about play command to now playing dialog
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis a67fecc210
Add gifs table and matsuri, add_gif and gifs command
Added a gif table to store gifs with optional category and name
as. The command add_gif (owner only) can be used to add a gif to
the database. The command gifs can be used to see all the gifs
stored in the database. The gifs are being used by the pekofy and
matsuri command.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 1bbbdc29f6
Move sauce and pekofy command to weeb group
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis 2877d34ebe
Merge pull request #9 from Trivernis/develop
Develop
3 years ago
trivernis 8ed7cf90b3
Change to require dj permission for join with channel id
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 87cfba1bc8
Change menu pages to be wrapped in page type
The pages of a menu are now wrapped in an enum that contains either
a builder function or a static CreateMessage. The builder function
is used for the now playing message to always return the currently
playing song instead of mapping a static song. This solves the problem
that the old page is being rendered when the page is recreated because
of being sticky.

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 071e5f52fd
Change menu recreation now working without cloning
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 abc97bea45
Change MessageHandle to be a struct wrapping the IDs
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 45d2ac84b1
Add enquote util and change run_command_async
The new enquote function is used to enquote command input.
For simplicity reasons the run_command_async doesn't read from
stdout and stderr separately anymore but uses `.output().await`
instead.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 8b8fc8f814
Add rate limits to commands
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis cbdb2e3265
Change add_control on menu builder to pass the function instead of the Arc
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis bba9c1dcf3
Merge pull request #8 from Trivernis/develop
Develop
3 years ago