Commit Graph

57 Commits

Author SHA1 Message Date
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 f6331fdbe5 Fixed valid server list 2023-07-24 22:47:38 +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 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 df6d060863 Added a command to get suggestion data into excel 2023-03-12 05:32:07 +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 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 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 5ed071ab7c Added soft lock command 2022-10-03 16:58:20 +02:00
Teriuihi 8bcadbba27 Added crate item suggestion form (fixed output type table) 2022-10-01 03:39:51 +02:00
Teriuihi 425eaf2b94 Added /seen command 2022-09-30 00:01:10 +02:00
Teriuihi 2d652bc780 Merge branch 'master' into seenCommand
# Conflicts:
#	src/main/java/com/alttd/commandManager/CommandManager.java
2022-09-29 19:06:30 +02:00
Len 5519ea0ad4 Start working on CommandSeen.java 2022-09-29 13:02:53 +02:00
Teriuihi f7a936e9a8 Fixed auto complete suggesting 1w instead of 1m 2022-09-22 00:11:02 +02:00
Teriuihi be890af51f Fixed buttons not removing after clicking them
Added hour option
Fixed reminder not working without description
Fixed using snowflake instead of timestamp for relative time
2022-09-21 23:43:24 +02:00
Stijn d8102e4baa Added reminders (in a new table for now) 2022-09-21 21:49:42 +02:00
Stijn 83bb43f696 Added guildOnly to commands that need it 2022-09-21 18:52:59 +02:00
Stijn 70f4bf13d6 Added guildOnly to commands that need it 2022-09-21 18:37:03 +02:00
Teriuihi accd875eaa Added a toggle role command and a command to manage the roles that can be toggled 2022-09-16 22:52:31 +02:00
Teriuihi 2083f8ff35 Added a way to reply to suggestions 2022-09-16 21:34:57 +02:00
Teriuihi 2676acc205 Made suggestions work with forums and added support for forum channels to other commands 2022-09-16 18:58:06 +02:00
Teriuihi ce9b57efe9 Added a way to specify the type of history to show 2022-09-16 05:16:37 +02:00
Teriuihi c59746d81f Fixed history being called flag list 2022-09-16 03:16:45 +02:00
Teriuihi 6e1b822405 Added history command 2022-09-16 02:42:16 +02:00
Teriuihi d6dbecfe4e Added flag command 2022-09-16 02:11:49 +02:00
Teriuihi a28e70b443 Added evidence command 2022-09-15 22:03:36 +02:00
Teriuihi 4961b70f28 Added error handling 2022-09-15 21:46:01 +02:00
Teriuihi ee23b56818 Properly register every command on startup 2022-09-15 21:40:44 +02:00
Teriuihi 3c9b49ab46 Added button manager and some buttons for suggestions
Added a way to reload commands
Added a way to set output channels
2022-09-15 21:34:27 +02:00
Stijn 6a05dec5b9 Added a way to make modals and added a suggestion modal 2022-09-14 21:36:59 +02:00
Stijn d6b631e232 Updated JDA 2022-09-14 21:36:43 +02:00
Teriuihi e465c38994 Fixed command manager and removed permission manager stuff
Fixed commands that were added, not done with polls
2022-09-10 05:20:24 +02:00
Teriuihi 45e7d9994b Added untested Disable and Enable sub command 2022-04-24 02:33:24 +02:00
destro174 e56a5c6f8d Register commands when JDA is ready 2022-04-22 22:22:32 +02:00
Stijn e4dfecb7a3 Fixed order in which commands are loaded 2022-04-22 21:20:24 +02:00
Stijn d351a424e7 Renamed add command 2022-04-15 22:00:33 +02:00
Stijn 86ef41a117 Started work on permission commands and toggling commands on and off within discord.
Changed SubCommand to inherit from SubOption and added SubCommandGroup
2022-04-15 21:44:26 +02:00
Teriuihi 68400777ab Fixed auto complete options where they aren't possible 2022-04-11 02:36:49 +02:00
Stijn 9642a80f08 Start for editing descriptions for polls 2022-04-08 21:57:55 +02:00
Stijn b081a9ef88 Started work for adding buttons 2022-04-08 21:57:38 +02:00
Stijn f664f3624e Added what's needed to execute the add subcommand except storing the data 2022-04-08 21:57:23 +02:00
Stijn c44264b78c Deleted unused imports 2022-04-08 21:56:18 +02:00
Stijn c33302e221 Deleted old embed command 2022-04-08 21:55:54 +02:00
Stijn e31678a275 Added data objects needed for polls 2022-04-08 21:55:43 +02:00