084b7ed979
optimize codebase
...
Build only (for PRs) / build-only (pull_request) Successful in 4m43s
main.go:
- Eliminated ~160 lines of duplicate code: Extracted 3 new helper functions at the bottom of the file:
buildVideoMenuOptions([]VideoOption) — builds the Discord select menu options for video formats
buildAudioMenuOptions([]AudioOption) — same for audio
fetchAndShowFormats(s, i, url) — fetches formats, sorts them, builds menus, stores state, and edits the interaction; previously duplicated identically in both the download and download video command handlers
- Fixed time.Sleep ordering bug: The startAsyncDownload goroutine was launched before InteractionRespond with a 100ms sleep to compensate. Now the download is launched after InteractionRespond returns — no sleep needed. Removed "time" import.
- Used helpers in video_select handler: The two inline menu-building loops in that handler now call buildAudioMenuOptions / buildVideoMenuOptions
misc.go:
- Moved regexp.MustCompile(...) to a package-level var urlPattern — previously it recompiled the regex on every call to extractURLFromString
- Simplified the function body to a single return line
2026-03-09 11:10:33 -04:00
e0de621e41
Merge pull request 'chore(deps): update golang docker tag to v1.26.1' ( #43 ) from renovate/golang-1.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 5m18s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #43
2026-03-08 05:15:33 +00:00
451333860f
chore(deps): update go-ytdlp and my fork
Build and Push Docker Image / build-and-push (push) Successful in 7m26s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
2026-03-07 23:55:40 -05:00
e3b5542b78
add /version command
Build and Push Docker Image / build-and-push (push) Successful in 5m5s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
2026-03-07 21:14:31 -05:00
aaf3338797
re-introduce context menu command
2026-03-07 21:05:23 -05:00
8f2bda0b52
chore(actions): change buildkitd url
Build and Push Docker Image / build-and-push (push) Successful in 7m19s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
2026-03-07 18:56:26 -05:00
91f2eb39cb
chore(actions): change buildkitd url
Build and Push Docker Image / build-and-push (push) Failing after 26s
Build and Push Docker Image / deploy-on-green (push) Has been skipped
2026-03-07 18:35:56 -05:00
82b867ae9c
Merge pull request 'chore(deps): update docker/setup-buildx-action action to v4' ( #46 ) from renovate/docker-setup-buildx-action-4.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 7m51s
Build and Push Docker Image / deploy-on-green (push) Successful in 1m18s
Reviewed-on: #46
2026-03-07 15:19:11 +00:00
ebb6c11d49
Merge pull request 'chore(deps): update docker/build-push-action action to v7' ( #45 ) from renovate/docker-build-push-action-7.x into master
...
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Reviewed-on: #45
2026-03-07 15:19:02 +00:00
d4beb62fdd
chore(deps): update docker/setup-buildx-action action to v4
Build only (for PRs) / build-only (pull_request) Successful in 10s
2026-03-07 03:01:29 +00:00
13d65ef6ce
chore(deps): update docker/build-push-action action to v7
Build only (for PRs) / build-only (pull_request) Successful in 10s
2026-03-07 03:01:17 +00:00
8b1cead3ea
chore(deps): update golang docker tag to v1.26.1
Build only (for PRs) / build-only (pull_request) Successful in 9m27s
2026-03-07 02:00:48 +00:00
4347bf733c
fix flake.nix
2026-03-06 20:32:37 -05:00
5748834af4
fix Dockerfile
Build and Push Docker Image / build-and-push (push) Successful in 16s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
v1.0.1
2026-03-06 20:08:45 -05:00
06d2a5ef01
Deploy and release v1.0.0 (Go Refactor) #30
Build and Push Docker Image / build-and-push (push) Failing after 11s
Build and Push Docker Image / deploy-on-green (push) Has been skipped
2026-03-06 20:06:43 -05:00
bdcd77eff1
rm build-testing to make way for merge
Build only (for PRs) / build-only (pull_request) Successful in 4m59s
2026-03-06 19:52:24 -05:00
4541559f47
remove RecodeVideo, too resource intensive
Build only (for PRs) / build-only (pull_request) Successful in 3m30s
Build and Push Docker Image / build-and-push (push) Successful in 3m46s
2026-03-06 19:40:11 -05:00
906ef98bd5
docker: fix more issues with dynamic linking
Build only (for PRs) / build-only (pull_request) Successful in 32s
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
2026-03-06 10:04:19 -05:00
640c952b20
actions: adjust build-only for new PRs
2026-03-06 10:03:50 -05:00
f30686fd7c
start pushing test images
Build only (for PRs) / build-only (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Successful in 7m31s
2026-03-05 23:28:58 -05:00
eceb3b3d76
fix multiarch in ffmpeg stage
Build only (for PRs) / build-only (push) Successful in 27s
2026-03-05 23:18:57 -05:00
23a27217df
actions: fix wording
Build only (for PRs) / build-only (push) Has been cancelled
2026-03-05 22:40:57 -05:00
82a6421c88
actions: create build-only workflow for testing automated builds and later for PR autochecks
Build only (for PRs) / build-only (push) Failing after 5m7s
2026-03-05 22:37:42 -05:00
c72bc42496
renovate: track yt-dlp version from dockerfiles
2026-03-05 22:25:33 -05:00
991a5f376f
new dockerfile for staged yt-dlp/deno/go builds to distroless container
2026-03-05 22:15:34 -05:00
13bd3b82db
minor UX tweaks
2026-03-05 21:42:56 -05:00
2c99fbf517
update flake
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
2026-03-05 19:36:59 -05:00
890a0dd5c9
format final video download message
2026-03-05 19:35:13 -05:00
6fd6160edf
use animated loading emote
2026-03-05 19:17:05 -05:00
43c2fa2f91
update flake
2026-03-05 18:55:23 -05:00
81968a6811
Merge pull request 'chore(deps): update docker/build-push-action action to v7' ( #42 ) from renovate/docker-build-push-action-7.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 13s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #42
2026-03-05 23:44:23 +00:00
7d83fd8518
chore(deps): update docker/build-push-action action to v7
2026-03-05 22:01:13 +00:00
7b34919e72
Merge pull request 'chore(deps): update docker/setup-buildx-action action to v4' ( #41 ) from renovate/docker-setup-buildx-action-4.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 2m53s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #41
2026-03-05 14:05:38 +00:00
98fec74ac0
chore(deps): update docker/setup-buildx-action action to v4
2026-03-05 08:01:26 +00:00
481c8d9bb6
replace progress percentage with actual file size
2026-03-04 23:58:11 -05:00
3cac63ba82
implement progress bar
2026-03-04 21:06:41 -05:00
b3d779374b
have progress messages edit each other
2026-03-04 20:26:31 -05:00
2269104805
Merge pull request 'chore(deps): update docker/login-action action to v4' ( #40 ) from renovate/docker-login-action-4.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 3m5s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #40
2026-03-04 13:47:45 +00:00
4bea5e020f
Merge pull request 'chore(deps): update dependency discord.py to v2.7.1' ( #39 ) from renovate/discord.py-2.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 3m8s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #39
2026-03-04 13:43:27 +00:00
60803961b3
Merge pull request 'chore(deps): update dependency yt-dlp to v2026.3.3' ( #38 ) from renovate/yt-dlp-2026.x into master
...
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Reviewed-on: #38
2026-03-04 13:43:10 +00:00
197e35314a
chore(deps): update docker/login-action action to v4
2026-03-04 10:01:13 +00:00
db0c0a3893
chore(deps): update dependency discord.py to v2.7.1
2026-03-03 19:01:27 +00:00
46fec9b85a
chore(deps): update dependency yt-dlp to v2026.3.3
2026-03-03 17:02:19 +00:00
204404b761
update flake for latest yt-dlp
Build and Push Docker Image / build-and-push (push) Successful in 4m3s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
2026-03-02 20:10:03 -05:00
6e7fc73420
Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.2' ( #37 ) from renovate/python-dotenv-1.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 2m51s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #37
2026-03-02 16:26:46 +00:00
67c85aebf9
chore(deps): update dependency python-dotenv to v1.2.2
2026-03-01 16:00:47 +00:00
b9088d932c
Merge pull request 'chore(deps): update dependency discord.py to v2.7.0' ( #36 ) from renovate/discord.py-2.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 3m39s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
Reviewed-on: #36
2026-02-28 21:38:46 +00:00
8c1d044f79
chore(deps): update dependency discord.py to v2.7.0
2026-02-27 19:02:10 +00:00
f688ee035f
Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.21' ( #35 ) from renovate/yt-dlp-2026.x into master
...
Build and Push Docker Image / build-and-push (push) Successful in 2m41s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #35
2026-02-21 22:25:02 +00:00
7fd5d93b6d
chore(deps): update dependency yt-dlp to v2026.2.21
2026-02-21 21:01:26 +00:00