-
Notifications
You must be signed in to change notification settings - Fork 22
DIH4JDA, Sentry & Major Cleanup #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 200 commits
Commits
Show all changes
209 commits
Select commit
Hold shift + click to select a range
0eb1f8d
First Pass on implementing DIH4JDA
jasonlessenich f772199
Further implementation of DIH4JDA and added Sentry
jasonlessenich 30a1bd3
Even more DIH4JDA stuff
jasonlessenich bdf9e72
DIH4JDA-ified most user commands
jasonlessenich 957b0a3
Cleaed up `/leaderboard`
jasonlessenich 0e67ae6
Updated QOTWNotificationService
jasonlessenich 2cc6d0b
Fixed `/config` commands
jasonlessenich 72fd17b
Added missing annotations
jasonlessenich 6b1edec
Started work on re-implementing help-commands
jasonlessenich 161a62f
Improved HelpChannelInteractionManager by implement the ComponentHandler
jasonlessenich b847c65
Re-implemented `/jam` & `/jam-admin` commands
jasonlessenich d69011d
Added `/server-lock status` and refactored all other moderation commands
jasonlessenich 55f2669
Merge remote-tracking branch 'origin/main' into dynxsty/dih4jda
jasonlessenich 2d9a839
Upgraded JDA & DIH4JDA and added CommandPermissions
jasonlessenich a2666fd
Further implemented DIH4JDA
jasonlessenich 2ac3e07
Merge branch 'main' into dynxsty/dih4jda
jasonlessenich 43f4536
Refactored `/db-admin` commands and upgraded DIH4JDA
jasonlessenich 25c005b
Refactored `/warn` commands & `/warns`
jasonlessenich 11b46e6
Added guild checks
jasonlessenich 188af5b
Refactored `/suggestion` commands
jasonlessenich 3149acd
Refactored `/say` & `/redeploy` and moved `self_roles` out of the `st…
jasonlessenich e43d477
Started work on refactoring `/embeds`
jasonlessenich bc2c542
Re-implemented Custom Commands
jasonlessenich ecb19c6
Added missing annotations
jasonlessenich db348ec
Removed Guild-based Slash Command Colors & refactored some more commands
jasonlessenich 8f16349
Refactored even more commands
jasonlessenich 25615fa
Introduction of `ExceptionLogger#capture`
jasonlessenich 0aaa9f9
Added `ExceptionLogger#capture` to most catch phrases
jasonlessenich d25b1d2
Refactored even more commands
jasonlessenich 7d8c302
Removed `/self-role enable` & replaced it with `/self-role status`
jasonlessenich 8c6e65a
Added some missing annotations and cleaned up some more things
jasonlessenich 83dcee9
Merge branch 'main' into dynxsty/dih4jda
jasonlessenich 6d6f2ca
Re-implemented and cleaned Search Commands
jasonlessenich 696233d
Added missing annotation
jasonlessenich 04c0324
even more cleanup
jasonlessenich 065fa54
Fixed some user commands
jasonlessenich 8d4fc9c
Fixed all checkstyle problems
jasonlessenich 32cc766
Fixed some more compiling issues
jasonlessenich 0f6af94
Added some missing try-with-resources blocks
jasonlessenich 6cc94a8
Removed all the remaining .yaml files
jasonlessenich 3257ccb
Removed old assets and migrations
jasonlessenich 0188b9f
added `/db-admin quick-migrate`
jasonlessenich a1229e9
Further improved `/db-admin quick-migrate` by using Modals
jasonlessenich 4c748a4
optimized imports
jasonlessenich 4281f64
Removed ReportManager constructor (for now)
jasonlessenich 6d8e9d0
Added missing SlashCommandData
jasonlessenich b8163a2
Added missing setGuildOnly methods and upgraded DIH4JDA
jasonlessenich 4b292b1
Removed `InteractionListener.java`
jasonlessenich e96fd06
Updated README.md
jasonlessenich 3033827
Update README.md
jasonlessenich 5cde7b6
Restructured /resources/
jasonlessenich 397e18f
Merge remote-tracking branch 'origin/dynxsty/dih4jda' into dynxsty/di…
jasonlessenich 45ed9cf
Upgraded JDA & DIH4JDA
jasonlessenich 0f58918
Removed deprecated method
jasonlessenich 17a5af0
Upgraded H2; Introduction of `DatabaseRepository.java`
jasonlessenich d415901
Fixed `DbHelper#initializeSchema` not working correctly after the H2 …
jasonlessenich f9775ed
added missing null-check for MessageVoteListener
jasonlessenich a60096e
Renamed `ServerLock` to `ServerLockManager` & upgraded Sentry
jasonlessenich b784860
Merge remote-tracking branch 'origin/main' into dynxsty/dih4jda
jasonlessenich 7c30cc6
Fixed and cleaned up `SelfRoleInteractionManager.java`
jasonlessenich 5891429
Some cleanup for `CreateSelfRoleSubcommand.java`
jasonlessenich d574788
Renamed StatsUpdater & Made ImageCache static
jasonlessenich eefb77a
Added missing `/suggestion on-hold`
jasonlessenich 26b5b73
Fixed `IdCalculatorCommand.java`
jasonlessenich cdcfa66
Fixed HelpAccountRepository using a negative offset
jasonlessenich 64bc6a8
Upgraded `/help-guidelines` and added null-check for MessageCache#sen…
jasonlessenich 906df2b
Reformatted Schema; Removed Java Jam Relations
jasonlessenich 0034754
Removed all Jam Commands
jasonlessenich 067feb8
Fix checkstyle
jasonlessenich ecb1fa8
Added SQL to `/format-code`
jasonlessenich 7f5f5dc
Removed JamConfig
jasonlessenich b4eb4bd
Renamed `/customcommands-admin` to `/customcmds-admin`
jasonlessenich 18d5615
Added query to Search The Web
jasonlessenich 3da2433
Fixed CustomCommandManager not loading commands properly
jasonlessenich 9edc053
Upgraded DIH4JDA
jasonlessenich 40aa244
Fixed compiling issues
jasonlessenich 2e8c0be
Upgraded JDA
jasonlessenich c1b0941
Added missing allowedMentions for CustomCommands
jasonlessenich cdd589d
Added missing return
jasonlessenich fb8b121
Fixed `/customcmds-admin edit` & added fixed logs for `/serverlock st…
jasonlessenich c5b0995
made `text` option required
jasonlessenich 9b57eee
Fixed `/warns` & `Show Warns`
jasonlessenich 5159abf
Made `/ban` accept users which aren't a part of the server.
jasonlessenich b739ed7
Upgraded DIH4JDA (and JDA)
jasonlessenich 12c9cdb
Added missing options to custom commands & added message gateway intent
jasonlessenich b48c22d
Fixed inverted checks
jasonlessenich e5c5be8
Fixed even more wrong checks
jasonlessenich d9ed90c
Set Connection Leak Threshold & Added DEBUG Logs logging
jasonlessenich 19bb11b
Fixed some more stuff
jasonlessenich df1120d
Merge branch 'main' into dynxsty/dih4jda
jasonlessenich 6b5dd23
Fixed HugListener to support ChannelUnions
jasonlessenich 599de71
removed unused imports
jasonlessenich a5ada55
First pass on implementing custom tags
jasonlessenich efb03fa
fix checkstyle
jasonlessenich 718eb19
bump dih4jda
jasonlessenich 089f6cd
update comment to better reflect what jda version the bot is using
jasonlessenich 5c2fa61
bump sentry
jasonlessenich 8daed31
Fixed some things regarding custom tags
jasonlessenich e1e4a2b
fix checkstyle
jasonlessenich 186d54d
Beefed up `Responses` by adding optional args for String formatting &…
jasonlessenich a338df4
checkstyle's a bitch
jasonlessenich 70db82c
Renamed some methods & added `Responses#replyMissingMember`
jasonlessenich d5d377a
Significantly cleaned up `/timeout add` & `/timeout remove`
jasonlessenich ddf4fb1
GOD I HATE CHECKSTYLE AH
jasonlessenich 093e7c5
Re-implemented permission checks to ModerateUserCommand while staying…
jasonlessenich 21c6ad4
fix checkstyle
jasonlessenich b70597d
Moved admin users into their own config
jasonlessenich 0e88063
Added staff-role checks for ModerateCommand
jasonlessenich e68191e
Added even more permission checks
jasonlessenich 84d4634
Fixed `/say` & added Staff-Role check
jasonlessenich 9b77fdc
fix checkstyle
jasonlessenich 25adb89
Refactored MetricsUpdater
jasonlessenich a241639
Renamed multiple config & renamed StatsConfig to MetricsConfig
jasonlessenich 1cd1a98
added default values to config
jasonlessenich 5e85677
fixed connection leaks in StarboardManager
jasonlessenich 85b2dd8
Removed ExceptionLogger from AutoMod
jasonlessenich 74d578f
removed "from" from footer
jasonlessenich 42906b7
Introduction of the `/move-conversation` command
jasonlessenich 8222561
Added spaces between constants
jasonlessenich 88f2802
Removed `MoveConversationCommand#REQUIRED_PERMISSIONS`
jasonlessenich 9867704
Added Report Presence Message
jasonlessenich b9c242d
First pass on implementing Webhook Message Links
jasonlessenich f307da9
Added Webhook button (doesnt work atm)
jasonlessenich 2107a01
bumped `DynxstyGIT/discord-webhooks`
jasonlessenich 2e525d6
optimize imports
jasonlessenich ebfe7d0
Merge pull request #320 from Java-Discord/dynxsty/report_presence
jasonlessenich 0d51e76
Merge pull request #321 from Java-Discord/dynxsty/webhook_message_links
jasonlessenich 824ca9a
Made it more clear that this is only _suggesting_ to move the convers…
jasonlessenich 829dff9
Adjusted command description to better reflect that this is just a su…
jasonlessenich f4f112a
Moved the order the messages are sent to ensure that the message whic…
jasonlessenich 8eeb0b8
Added SelfMember Permission Checks & Error Consumer
jasonlessenich 39c29df
Added boolean option to enable/disable the Recent Transactions Sectio…
jasonlessenich 4f98cc5
Added Buttons
jasonlessenich 2d8c01d
Removed button from the "Move To" Message
jasonlessenich d30e168
Added Credits to README.md
jasonlessenich 0db7958
fix checkstyle
jasonlessenich 088b870
Merge pull request #323 from Java-Discord/dynxsty/help_transactions
jasonlessenich c4009db
Added check for slowmode
jasonlessenich 8a86f3b
Added explicit admin checks
jasonlessenich 1717012
Added `ModerateCommand#setModerationSlashCommandData`
jasonlessenich a124139
Moved `ModerateCommand#setModerationSlashCommandData` to an interface…
jasonlessenich 4651412
Added some javadoc
jasonlessenich 39f9820
fix checkstyle
jasonlessenich a8d5ba0
Finalized `/embed create`
jasonlessenich d4d46e7
Added missing modals
jasonlessenich b47a3d0
Added the rest of the embed-editing interface
jasonlessenich c822c50
Added `/embed add-field` & `/embed remove-field`
jasonlessenich 7c6b74a
Fixed DatabaseRepository.java & removed already-completed TODO
jasonlessenich 68ffc4f
Removed GuildUtils & made MetricsUpdater use ExceptionLogger#capture(…
jasonlessenich 9c67cde
Merge pull request #318 from Java-Discord/dynxsty/move_conversation
MoonTM-GIT 124a74b
Added missing staff check for `/serverlock-admin status`
jasonlessenich 8a823dd
Merge remote-tracking branch 'origin/dynxsty/dih4jda' into dynxsty/di…
jasonlessenich 4ce6340
Removed unnecessary `DatabaseRepository#close` method
jasonlessenich daaf932
Added missing command-section in readme
jasonlessenich 2e37755
Added `try-finally` block to properly close Graphics2D
jasonlessenich d4521a5
Added missing `try-with-resources`
jasonlessenich 9c7645b
Added missing `try-with-resources` in DbHelper.java
jasonlessenich 2ac20ee
Used `Collectors.joining` instead of StringBuilder
jasonlessenich 832a6a3
Used `PreparedStatement` instead
jasonlessenich 1670bb8
Used ExceptionLogger#capture(Throwable, String) instead
jasonlessenich d6299f7
Made `/config` require admin users
jasonlessenich d61bce3
Renamed `ListConfigSubcommand` to `ExportConfigSubcommand`
jasonlessenich 24cbece
Replaced all occurrences of `var` & added MANY missing `try-with-reso…
jasonlessenich d733dcd
Made some requested changes
jasonlessenich ba56114
Removed member instance from HelpPingCommand#lastPingTimes
jasonlessenich 9880403
Removed unnecessary Statement#close calls
jasonlessenich a4be72a
Removed TODOs
jasonlessenich 08846a3
Made `/prune` admin-only
jasonlessenich f2fc390
Refactored `/unban` to take a reason option
jasonlessenich e48c844
Added missing occurrence of ExceptionLogger
jasonlessenich 4d02c6a
Added `/serverlock-admin check-status` & added missing unban reason
jasonlessenich 81d1035
Added `Constants#INVITE_URL`
jasonlessenich bd4f5b0
Added channel mentions to `/say`
jasonlessenich fc91a65
Fixed MessageChannel check
jasonlessenich eff9540
Added missing null checks
jasonlessenich 6e0af58
Added the clearReaction method to SuggestionSubcommand
jasonlessenich 577c879
implemented missing CommandModerationPermissions
jasonlessenich bf4cedc
implemented missing CommandModerationPermissions
jasonlessenich 4b7995e
Removed ListenerAdapter from CustomTagManager.java
jasonlessenich b1a1393
Added missing ExceptionLogger#capture
jasonlessenich 10ac817
Some more cleanup
jasonlessenich dc0c5eb
Removed duplicate method
jasonlessenich 4f27fc6
Fixed possible NPE
jasonlessenich cbd558f
Used InteractionHook instead
jasonlessenich 177421f
removed unused import && added support for mod-commands in voice chan…
jasonlessenich d028cc5
Replaced Paths.get with Path.of
jasonlessenich 18025ab
Removed overrides
jasonlessenich 4a09731
deleted `subcommands` package
jasonlessenich 352999c
Added missing subcommand to ServerLockCommand
jasonlessenich 126e78f
Removed unnecessary overrides
jasonlessenich 263808b
moved `tags` & `self_roles` into the `staff_commands` package
jasonlessenich ed0671f
Added null-check
jasonlessenich 612a979
fix javadoc
jasonlessenich db2bf9b
replaced `Member#getUser#getEffectiveAvatarUrl` with `Member#getEffec…
jasonlessenich a908feb
Made `FormatCodeCommand#buildActionRow` package-private
jasonlessenich db8cea0
fixed serverlock status settings
jasonlessenich 44f77e0
combined ModerateUserCommand logic with `requireStaff`
jasonlessenich 104f88c
Fixed channel comparing
jasonlessenich 836c1dd
Added status check for `/serverlock-admin set-status`
jasonlessenich f8cbd6a
fix checkstyle
jasonlessenich 396ced8
fixed config permission checks
jasonlessenich a4fb476
Fixed HelpChannelInteractionManager#handleHelpThankButton not getting…
jasonlessenich 9adc24c
fix checkstyle
jasonlessenich c74c58a
added `/tags list` & `/tags view`
jasonlessenich 36b19ad
fix checkstyle
jasonlessenich b72d0c2
removed params
jasonlessenich d1a2811
Added check for selfuser when updating starboard messages
jasonlessenich 6c8440a
Added missing ExceptionLogger
jasonlessenich 70ba555
Check if the url really starts with "https" or "http"
jasonlessenich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ build/ | |
/config.json | ||
/config | ||
/purgeArchives | ||
/logs | ||
|
||
# Eclipse settings | ||
.classpath | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.