Commit Graph

145 Commits

Author SHA1 Message Date
akastijn 7863b3f62d Add AutoThread listener for creating threads in specific channels. 2025-08-08 22:38:05 +02:00
akastijn 003c75c391 Replace Logger with Lombok's @Slf4j annotation in ContactEndpoint and update log method calls. 2025-08-08 21:01:34 +02:00
Teriuihi 81b53cd1f8 Update dependencies and build process
Upgraded multiple dependencies including Spring Boot, JDA, and Configurate to their latest versions. Updated Java toolchain to version 21. Added the Versions plugin for dependency version management. Modified Jenkins build process to use `shadowJar`.
2025-06-20 23:10:46 +02:00
Teriuihi 34f9559d10 Change join-time option type to INTEGER
Adjusted the option type for 'join-time' from NUMBER to INTEGER for clarity and accuracy. This ensures proper data representation and aligns with intended usage.
2024-08-26 20:25:04 +02:00
Teriuihi f2864ade8a Add UPSERT behavior to setJoinDate query
Modified the SQL query in the setJoinDate method to use "ON DUPLICATE KEY UPDATE" for updating the date if the userId already exists. This ensures that duplicate entries are handled correctly by updating the existing record rather than creating a new one.
2024-08-26 19:15:03 +02:00
Teriuihi cd356121b7 Update CommandStaffJoinDate descriptions
Improved the descriptions of the options for the CommandStaffJoinDate command. The "staff" and "join-time" options now have clearer descriptions, making their purposes more understandable for users.
2024-08-25 19:50:38 +02:00
Teriuihi 1f706b69b8 Refactor CommandStaffJoinDate initialization
Correctly initialize and return the CommandData object for cleaner code. This change ensures proper usage of the command data and handles the auto-complete interaction correctly.
2024-08-25 19:47:34 +02:00
Teriuihi 8f6d1137ae Remove autocomplete from command options
Disabled autocomplete for "staff" and "join-time" options in the CommandStaffJoinDate constructor. This change simplifies the command interface by eliminating unnecessary suggestions.
2024-08-25 19:45:58 +02:00
Teriuihi 8a65c27bac Add command for managing staff join dates
Implemented `CommandStaffJoinDate` to allow viewing and setting staff join dates. Included methods in `QueriesStaffJoinDate` for database interactions and defined the `JoinDate` record to encapsulate join date information.
2024-08-25 19:39:43 +02:00
Teriuihi cbf51f3fc8 Added Jenkins file
Added Jenkins file to automate builds
2024-08-07 00:26:11 +02:00
Teriuihi bd9ecc2677 Added Jenkins file
Added Jenkins file to automate builds
2024-08-07 00:25:57 +02:00
Teriuihi 0e0db7cb17 Added Jenkins file
Added Jenkins file to automate builds
2024-08-07 00:25:19 +02:00
Teriuihi 31ebc7116b Merge branch 'refs/heads/forms' 2024-08-07 00:21:25 +02:00
Teriuihi 09db7b3c16 Added Jenkins file
Added Jenkins file to automate builds
2024-08-07 00:21:05 +02:00
Teriuihi 27f1920081 Create event management system, added event notifier for community events
Added functionalities to create and manage events, including the creation of necessary database tables, context menus, modals, and scheduling tasks. Introduced `UserToMessageTracker` utility for tracking user messages within modals.
2024-08-07 00:18:40 +02:00
Teriuihi 994cd7a85f Updated JDA and gradle + Refactor modal methods to match the JDA update
Refactor modals to use `addActionRow` instead of `addActionRows`. Updated JDA dependency to version 5.0.2 and upgraded Gradle to version 8.5.
2024-08-07 00:17:58 +02:00
Teriuihi ead56c4585 Merge branch 'master' into forms
# Conflicts:
#	src/main/java/com/alttd/AltitudeBot.java
2024-04-28 17:06:27 +02:00
Stijn 981cd1acb7
Merge pull request #3 from Altitude-Devs/kanboard
Kanboard
2024-03-31 18:38:04 +02:00
Teriuihi 314dcd6771 Refactor code to improve message forwarding to Kanboard
This commit extracts the method "forwardMessageToKanboard" from the "TagAdded" class to the new utility class "Kanboard", making the code base cleaner and more maintainable. It also introduces "ContextMenuForwardToKanboard" for better message management. Further modifications include alterations in "AltitudeBot", such as changes in permissions and implementing @Getter.
2024-03-31 14:51:13 +02:00
Teriuihi 32e4a669ed Add message forwarding functionality to Kanboard
This update includes the creation of a new "ContextMenuForwardToKanboard" and a utility class "Kanboard", which manage the forwarding of messages to Kanboard. The "forwardMessageToKanboard" method has been extracted from "TagAdded" into "Kanboard" for better code organization. These changes also include some minor adjustments like changing the permission called in "AltitudeBot" and implementing the use of @Getter in the same class.
2024-03-31 11:39:21 +02:00
Teriuihi 964bfc85fa Initial commit for handling forms 2024-03-31 11:02:51 +02:00
Teriuihi 093571d312 Created the start of what's needed to auto upload messages to Kanboard
Added event listener for tags being added, still missing the tag id
Added code to forward mesage to kanboard, missing the correct link and title/body
Error handling that only outputs in console, stil needs to notify the user who adds the tags
2024-03-30 16:05:04 +01:00
Teriuihi c7120cc26c Merge remote-tracking branch 'origin/master'
# Conflicts:
#	.gitignore
#	gradlew
2024-01-14 13:28:43 +01:00
Teriuihi c7ce20fbd4 Add gradle files 2024-01-14 13:28:26 +01:00
Teriuihi e9db832901 Refactor code to replace GenericSelectMenuInteraction with StringSelectInteraction
The commit replaces instances of `GenericSelectMenuInteractionEvent` with `StringSelectInteractionEvent` to enhance type safety. This renaming results in a more specific interaction event and eliminates the need to check for type instantiation. In addition, a modification has been made to ensure a bid finishes properly in the `SelectMenuAuction` class with `deferEdit`.
2024-01-14 13:26:43 +01:00
Teriuihi b917a8c18f Optimize message retrieval in CommandDataSuggestions
The logic in CommandDataSuggestions has been simplified to improve fetching of parent messages in thread channels. This change replaces the previous method that got the entire history and checked conditionally for size. Now, instead, the parent message is directly retrieved, leading to cleaner and more efficient code.
2024-01-13 14:03:24 +01:00
Len e6818a4651 Include gradle wrapper in project 2024-01-13 09:19:52 +01:00
Teriuihi 57b86d1933 Update JDA interactions and adjust package imports
This commit updates the handling of JDA interactions to use the latest available methods and classes. Classes such as Modal and SelectMenu have been refactored and updated with new package locations. This change also includes adjustments for event handling where methods dealing with SelectMenuInteractionEvent are updated to GenericSelectMenuInteractionEvent and StringSelectInteractionEvent. Finally, minor changes were made to replace the use of some javax annotations with their JetBrains equivalents.
2024-01-13 08:27:42 +01:00
Teriuihi 32f0935b4a Added balance command and related queries
This commit introduces a new "balance" command, enabling users to check their in-game balance. This feature includes adding two new query files (`QueriesEconomy` and `QueriesUserDiscordId`), which handle SQL operations for fetching user ID and balance data. Also, number formatting utilities were updated to include a function for double's for proper display of balance.
2024-01-13 08:27:15 +01:00
Teriuihi a3d78c6059 Leave a message in the appeal thread notifying us of who completed it and when 2023-10-27 02:05:26 +02:00
Teriuihi 9f23812b16 Attempt to add text to embeds for appeal reminders so users can be tagged in them 2023-08-02 22:12:51 +02:00
Teriuihi f6331fdbe5 Fixed valid server list 2023-07-24 22:47:38 +02:00
Teriuihi 745fda134f Fix appeal reminders not properly removing themselves from the database 2023-07-20 00:18:40 +02:00
Teriuihi bb60924a63 Added command to update total votes manually
Moved code to update total votes to util class
Removed the channel sub command option from all poll subcommands other than the add subcommand
2023-06-05 03:41:02 +02:00
Teriuihi 977ae78e39 Added a way to add new lines in the description of a poll (it's done in a weird way though /n instead of \n) 2023-06-05 02:48:39 +02:00
Teriuihi 706ceb4b55 Finished poll commands (except for removing a button) added a timer to update total votes every 5 minutes 2023-06-04 23:30:09 +02:00
Teriuihi 4af7628203 Moved AltitudeLogs to repository 2023-05-23 04:18:45 +02:00
Teriuihi 94f1d566ac Changed to new logging, static implementation for now which is not ideal, but it's not worth spending the time to fix it right now 2023-05-21 21:54:59 +02:00
Teriuihi 0ae96bd6e5 Fixed reminders not running if the reminder was in a thread channel, and fixed reminders (and appeal posts) not pinging 2023-03-20 04:45:55 +01:00
Teriuihi df6d060863 Added a command to get suggestion data into excel 2023-03-12 05:32:07 +01:00
Teriuihi 11d2e2bac8 Added the ability for reminders to mention a user and specified what type of reminder a reminder is 2023-03-12 01:42:50 +01:00
Teriuihi a80d1952da Moved handling appeals from reactbot to here and improved it (more modern) 2023-03-03 00:48:30 +01:00
Teriuihi 265ddd82c3 We have multiple bots using slash commands so if this instance can't find a button/modal/selectmenu it shouldn't respond to it 2023-01-08 03:48:45 +01:00
Teriuihi f93ad8b4fb We have multiple bots using slash commands so if this instance can't find a command it shouldn't respond to it 2023-01-04 02:28:49 +01:00
Teriuihi 9ed3146a73 bad fix to force reconnect? 2022-11-09 03:13:56 +01:00
Teriuihi 723847a3be Improved auctions
- Added Starting Bid (only for first bid)
- Fixed missing $'s in messages
- Improved the way numbers are displayed in auctions for readability
- Added AuctionActions to store bids by users
- Removed as much code that was relying on text being in embeds as possible
- Improved structure of code related to auctions
2022-10-30 02:05:16 +01:00
Teriuihi 5d8368d0e5 Fixed bidding on your own auction
Fixed screenshots not working
2022-10-21 21:41:33 +02:00
Teriuihi d6eb332d83 Added auction command 2022-10-21 02:59:00 +02:00
Teriuihi df47c7a709 Improved channel type check 2022-10-19 03:13:02 +02:00
Teriuihi 5c66a0fe79 Don't delete bot messages 2022-10-19 03:12:23 +02:00