Commit Graph

18 Commits

Author SHA1 Message Date
njezi
43b63f1ba8 fixed a mistake (#1648) 2024-08-06 15:59:19 -04:00
Michaili K
81322ef993 Add seek command (supersedes #344) (#674)
* Add seek command

* Combine nested if statements

* Put the seek command in correct place to keep alphabetical order

* Add license header

* Brackets on next line

* Restructure if-statements

* Check for permissions with DJCommand#checkDJPermission

* Make regex slightly smaller

* Optimize imports

* Output length of current track if requested seek time is invalid

* Restate seeked point when seeked successfully

* Add empty newline at end of file to keep consistency

* Create TimeUtil class for parsing and formatting time

* Move FormatUtil#formatTime to TimeUtil, and refactor

* Apply requested changes (Pass 2)

* Seek based on current position in track

* Apply requested changes (Pass 3)

* Add javadoc param

* Apply requested changes (Pass 4)

* Fix merge

* Avoid reassigning parameter (Codacy)

* Rework timestamp parsing

* Refactor timestamp parsing

* Apply requested changes (Pass 5)

* Add examples in help

* Apply requested changes (Pass 6)

* Fix missing import

* Keep track of start timestamp & add "unit" times

* Fix my abdominal merge with QueuedTrack

* Use RequestMetadata to store start timestamp

* Store request info in request metadata

* Add regex to try getting a timestamp from the url

* Require RequestMetadata for QueuedTracks

* Add some unit tests for unit seeking

* Add docs & examples

---------

Co-authored-by: Whew., Inc <22574706+Whew-Inc@users.noreply.github.com>
2024-05-10 14:14:28 -04:00
Maoyue 貓月
1ad16181d0 Support new Discord username (#1397)
* Support new username

* Support new username, again

* Make a separate username formatting function

* Add some missing usage

* switch away from using static imports, add shortcuts for jda User and metadata UserInfo, add null check

---------

Co-authored-by: unknown <john.a.grosh@gmail.com>
2024-03-02 19:39:16 -05:00
Louk
e08c1491c2 Voice channel mention (#932)
* Voice channel mention

I recently noticed voice channels can be mentioned just like text channels. A small change to the code to implement this feature.

* Voice channel mention

* vc.getName() changed to vc.getAsMention()
2021-10-02 15:17:00 -04:00
John Grosh
51f9024498 first iteration of handling new gateway 2020-10-27 05:57:05 -04:00
John Grosh
338dafca0c deps update 2020-01-28 21:00:57 -05:00
John Grosh
43398449c7 more cleanup and update readme 2019-01-13 15:51:26 -05:00
John Grosh
1a9364acae code cleanup and deps update 2019-01-13 15:06:26 -05:00
John Grosh
aaec886b81 massive organization overhaul
dependency updates
config overhaul
2018-11-21 05:31:03 -05:00
John Grosh
af98eb5e01 more minor updates 2018-03-13 05:46:31 -05:00
John Grosh
6148dc6a89 updated deps
updated logger
added repeat mode
added loading playlist from video
added more game types
stop command improved
2017-12-18 10:33:08 -05:00
John Grosh
fe62e03367 updated lib versions
fixed config loading format
filtered more output
longer yt playlists supported
2017-09-10 23:38:59 -04:00
John Grosh
5deb41c651 updated libs
fixed internal bugs
lots of other things (see 0.0.9 release)
2017-09-02 16:39:08 -04:00
John Grosh
dddf4c8e38 added altprefix, songinstatus, and setstatus features
slight change to internals to reduce some bugs
2017-08-18 15:43:20 -04:00
John Grosh
cb9644d694 playlist load faster and queue command shows np 2017-07-04 01:41:42 -04:00
John Grosh
b158e70495 added pause command
use embed for nowplaying
2017-06-22 01:45:11 -04:00
John Grosh
9da577aa60 updated versions
local file support
less topic spam for the audit log conscious
2017-05-18 19:59:25 -04:00
John Grosh
0f52bbd170 updated package name
fixed soundcloud search url bug
fixed playlist permission bug
added info to playlists command
bumped versions
2017-04-24 23:49:57 -04:00