Commit Graph
255 Commits
Author SHA1 Message Date
anthorob 6429e42384 Bunch of improvements to tasks and DB logic
Use locks when executing tasks
Decouple GuildManager into services
Add more logging when failing to load a persistable task
Add ping method to WebModule
Improve Task interface and implementations
Start work on step tasks
2025-02-14 05:43:49 -05:00
anthorob 72d8bcef20 Update youtube source to latest version 2025-02-04 15:36:11 -05:00
anthorob fb872f2b0b change how events are handled by using a single class to register listeners onto 2024-12-31 20:45:16 -05:00
anthorob 6a869afb1d Add request caching on the WebModule 2024-12-24 09:03:31 -05:00
anthorob 88fa8aac23 add option constraints for some commands 2024-12-24 08:46:32 -05:00
anthorob 29eecd42a9 fix(MessageCommandContext): missing check for channel when option is of type STRING 2024-12-21 21:12:28 -05:00
anthorob b15ed9d577 better parsing for boolean options 2024-12-19 12:03:16 -05:00
anthorob 04bdb75087 show available choices, types, maximum and minimum length in command help message 2024-12-19 01:28:40 -05:00
anthorob 96e31a19ec fix: add missing checks for command usage 2024-12-18 11:44:23 -05:00
anthorob 9861fac769 use string chunking for method replyEphemeral(String) 2024-12-17 12:17:40 -05:00
anthorob 8479f719ab change package of core command classes so it makes more sense and rename getType() to getCategory() in command interface 2024-12-17 12:15:24 -05:00
anthorob 3314ef6bea Add unique ID for each context 2024-12-14 01:07:24 -05:00
anthorob 50430589e6 Add isSlashCommandOnly to command interface 2024-12-14 00:59:50 -05:00
anthorob 6b453bb7e2 Remove String.format() overload in Context 2024-12-12 21:22:11 -05:00
anthorob bae37fc8b1 Fixed message commands where a null optionnal argument was being parsed when it shouldn't be 2024-12-12 21:17:15 -05:00
anthorob 2afab8f1f5 Create abstraction to combine slash commands and message commands
Usage and options checking (arguments count, type checking)
Options parsing for message commands (both types of commands are now registered like slash commands and the abstraction will handle the parsing of all options as if it was a slash command)
Refactor of the help command for better readability and more helpful text, which is now based on the available options of a command
2024-12-11 04:00:55 -05:00
anthorob 4c27b80527 update youtube-source to 1.11.1 2024-12-10 09:06:41 -05:00
anthorob e6afe6e4c1 Implement built-in tasks, improve message commands with arguments, fix command context in DM, better help message 2024-11-21 01:33:55 -05:00
anthorob e0ef3f9915 Add getInteractionHook to InteractionContext abstraction 2024-11-20 04:43:04 -05:00
anthorob 6f2ba795d4 Improve cleanup for music player, fix resume logic, check if player is connected before checking url, refactor context 2024-11-16 03:14:23 -05:00
anthorob bcf78920e9 fix(MusicManager): missing checks and reworked logic of who is the DJ
DJ is now the first user who makes the bot connect to a voice channel and doesn't change until the voice channel changes
2024-10-09 12:27:41 -04:00
anthorob 0ccc2d5e9c fix(Udio): update html tag 2024-10-06 00:45:41 -04:00
anthorob 508c7acc67 build: switch to junit 5 2024-10-05 13:35:36 -04:00
anthorob 8be0f94b3e refactor(MusicManager): load track before connecting to voice channel 2024-10-05 13:31:41 -04:00
anthorob 5baa69ffe9 refactor: move db logic for tasks into service 2024-10-05 10:15:06 -04:00
anthorob 5a8e606a89 fix(CommandProcessor): missing guild check and if command exists before execution 2024-10-05 10:13:21 -04:00
anthorob 9ee4797aaf refactor: move db actions into repositories 2024-10-03 09:48:43 -04:00
anthorob 5294cb86ca Merge branch 'feat-tasks' into 'develop'
New feature: tasks

See merge request anthorob/netneutrality!2
2024-09-12 10:50:14 +00:00
anthorob 333d638f94 feat: implement button, modal and emoji tasks 2024-09-12 10:50:14 +00:00
anthorob 4378321c65 build: fix default values in startup script for docker 2024-07-16 21:17:18 -04:00
anthorob 5fb29ea4ed Merge branch 'dev' into 'master'
Release 2.x

See merge request anthorob/netneutrality!1
2024-07-15 02:18:42 +00:00
anthorob 75febb97ea bump: version 2.0.0 → 2.0.1 2024-07-14 22:13:31 -04:00
anthorob 5775493b2c refactor: fix inspection errors for deprecated calls and concatenation 2024-07-14 13:59:38 -04:00
anthorob f6ed32b090 ci: add junit reports in test phase 2024-07-14 13:21:07 -04:00
anthorob bb655d2a56 ci: add cache key 2024-07-14 13:16:04 -04:00
anthorob 9d8b38d309 ci: improve ci config for maven 2024-07-14 13:05:00 -04:00
anthorob 719c55ee27 build: Update JDA to v5 and use v2 for youtube-source 2024-07-14 12:20:35 -04:00
anthorob ad00a6b542 refactor: Remove unused command 2024-07-14 12:16:29 -04:00
anthorob a9ddfa8b63 Merge branch 'master' into 'dev'
# Conflicts:
#   LICENSE
2024-07-14 15:57:47 +00:00
anthorob d298fc77ee docs: Update LICENSE 2024-07-14 11:53:22 -04:00
anthorob 7ad2740a2b refactor: add release to Sentry config 2024-07-14 01:35:08 -04:00
anthorob 9f4b7187b9 build: fix startup script for local execution 2024-07-14 00:58:59 -04:00
anthorob 2aa75ce0fc refactor: remove convoluted TrackLoader and LoadableSongs abstraction
BREAKING CHANGE: removed TrackLoader amd LoadableSongs
2024-07-14 00:28:44 -04:00
anthorob 0db751af44 refactor(LogHandler): use the exception itself instead of a string for buildSentryErrorMessage 2024-07-14 00:12:14 -04:00
anthorob aba0441021 fix: fix relection package to new path 2024-07-14 00:00:42 -04:00
anthorob 2099c1753a fix: fix wrongly named environment variables 2024-07-13 23:55:21 -04:00
anthorob dc4ea8c661 build: fix environment variables in startup script 2024-07-13 23:43:16 -04:00
anthorob 53c3ddb732 fix: bump youtube-source to 1.4.0 2024-07-13 23:25:33 -04:00
anthorob f4c7e9c703 refactor: change package path to reflect group id of pom.xml
BREAKING CHANGE:
2024-07-13 23:10:06 -04:00
anthorob 2b08351f6d feat(Settings): add helpers to get version number of bot 2024-07-13 22:24:07 -04:00