Commit Graph

125 Commits

Author SHA1 Message Date
Teriuihi 34b8824d49 Update build files and listener behavior
Set project version to 1.0.1-SNAPSHOT, updated Maven repository URLs, and adjusted credentials handling for Nexus. Refactored dependency configurations and modified LiteBansBanListener to update the embed title from "Auto Discord ban" to "Evidence".
2025-03-22 18:53:05 +01:00
Teriuihi 8ddbfcd521 Add DiscordJoinListener to handle member join events
Introduced `DiscordJoinListener` to manage actions when a Discord user joins the server, ensuring linked players are assigned appropriate roles. Integrated the listener into the bot's event handlers in `Bot.java`. This enhances the user experience by maintaining role synchronization.
2025-01-24 20:28:02 +01:00
Teriuihi 7083235d68 Refactor account linking to use InteractionHook
Updated the account linking process to use `InteractionHook` for improved response handling and consistency. Replaced direct event replies with deferred interactions and streamlined role management and error messages. This ensures better compatibility with asynchronous operations and cleaner user feedback.
2025-01-24 20:23:08 +01:00
Teriuihi baf88ed43e Refactor logging and enhance bot features
Introduced detailed logging throughout the bot for better debugging and monitoring. Improved evidence folder handling in the ban listener and added error resilience. Added a new AnnouncementListener and implemented changes for command manager initialization. Disabled some obsolete or unused functionalities pending further review.
2025-01-17 20:09:16 +01:00
Teriuihi b54b3f9eaf Rename shadowJar output file to ProxyDiscordLink.jar
Updated the shadowJar configuration to output the JAR file as ProxyDiscordLink.jar instead of discordLink.jar. This change clarifies the file's purpose and aligns with naming conventions.
2025-01-03 23:53:10 +01:00
Teriuihi 40ded90edf Refactor folder handling and enhance ban duration reporting
Improved Nextcloud folder handling by checking for folder existence before creation, ensuring efficient operations. Updated LiteBansBanListener to include ban durations in Discord messages, adding clarity for temporary bans. Enhanced unit test structure for Evidence with simplified assertions.
2025-01-03 23:49:14 +01:00
Len 19e0760aa2 Update gradle shadow plugin to gradleup shadow plugin. 2025-01-03 16:42:44 +01:00
Teriuihi 35f34b2b71 Add evidence folder integration with Nextcloud support
Implemented an "Evidence" utility to manage evidence folders in Nextcloud and updated related classes to include evidence links in Discord ban messages. Refactored logging for better error handling and added unit tests for evidence folder creation.
2025-01-03 02:52:20 +01:00
Teriuihi 37f044751c Update link code message to include Discord invite link
Added a clickable URL to the GIVE_CODE message to guide users to the Discord server. This enhancement provides a direct link for easier access and account linking.
2024-08-09 23:12:46 +02:00
Teriuihi e8c73ead90 Add Jenkinsfile for CI and update build.gradle.kts
Introduce a Jenkinsfile to automate the build, archive, and notification stages in a pipeline. Additionally, modify build.gradle.kts to standardize the shadowJar output filename and remove versioning details from the filename.
2024-08-09 23:04:01 +02:00
Teriuihi abd5578be4 Fix Bot class and update CheckLinkSync constants
Removed unused imports and redundant methods in Bot.java for cleaner code. Updated CheckLinkSync.java to use new constants from BotConfig.DISCORD.
2024-08-09 23:00:55 +02:00
Teriuihi 3b4a4660d0 Merge branch 'slash_commands'
# Conflicts:
#	src/main/java/com/alttd/proxydiscordlink/bot/Bot.java
#	src/main/java/com/alttd/proxydiscordlink/util/Utilities.java
2024-08-09 22:58:21 +02:00
Teriuihi b6630b2639 Update command syntax in Discord link message
Fixed the command syntax in the DISCORD_LINK message to use the correct run_command format. This ensures that users can link their Minecraft and Discord accounts by clicking the message.
2024-08-09 22:54:47 +02:00
Teriuihi a8f24e8d91 Update config file paths
Changed the hardcoded file paths for both Config and BotConfig initializations. The file paths now point to "/mnt/configs/DiscordLink", replacing the previous location in the user's home directory.
2024-07-19 21:12:29 +02:00
Len cb4601dbfe Expose a way to register ListenerAdapter to the discordbot 2023-08-01 00:47:23 +02:00
Teriuihi 645b019f8d Fixed nick command having copy pasted initializer from another command 2023-01-30 02:17:58 +01:00
Teriuihi a40a838e7a Don't respond to commands that might be handled by other bot instances 2023-01-04 02:31:35 +01:00
Teriuihi c144a71d47 Removed unused discord commands 2022-12-27 18:53:47 +01:00
Teriuihi 78b4b5d25a Switched to string (code can start with 0) and fixed using link instead of code for getting option 2022-12-27 18:53:38 +01:00
Teriuihi fd5f89c755 Fix missing description for command 2022-12-27 18:53:16 +01:00
Teriuihi df69f0e607 Register commands after jda starts 2022-12-27 18:53:03 +01:00
Teriuihi 0674989716 Improved error message 2022-12-27 18:52:48 +01:00
Teriuihi ebbabea0b9 Fixed logger 2022-12-27 18:52:33 +01:00
Teriuihi bc8a8b9141 Remove linked role if user isn't linked in the db anymore 2022-12-27 18:51:29 +01:00
Teriuihi 29d0757279 Improved link check (gives more info) 2022-12-27 18:51:02 +01:00
Teriuihi 130d8b027a Deleted old commands 2022-12-19 02:56:55 +01:00
Teriuihi c045aba112 Added ServerList StaffList and Broadcast (added sync but not implemented yet) 2022-12-19 02:56:11 +01:00
Teriuihi cfeb04fe6e Added Nick and Unlink command 2022-12-19 02:27:41 +01:00
Teriuihi 9f389a8a12 Use embeds and fix not using command data 2022-12-19 01:53:37 +01:00
Teriuihi 6b60ba4a34 Added default behavior for tab completing (sending an empty list) cus it doesn't always need to do more 2022-12-18 22:51:20 +01:00
Teriuihi b39a155711 Reworked link command 2022-12-18 22:43:34 +01:00
Teriuihi 197c510d0d Reworked link command 2022-12-18 22:43:20 +01:00
Teriuihi 7b895443ab Re-structured configs 2022-12-18 21:35:37 +01:00
Teriuihi fd9ed1f8eb Updated JDA 2022-12-18 19:24:06 +01:00
Stijn 82e16ed007 Added better syncing for nitro roles
Added a way to automatically sync linked status if something went wrong every few hours (in testing, currently only logs the actions it will take)
2022-09-12 21:48:25 +02:00
Teriuihi ac314cdcf5 Merge remote-tracking branch 'origin/master' 2022-05-30 20:09:37 +02:00
Teriuihi 05cc57ddec Updated minimessage 2022-05-30 20:09:20 +02:00
destro174 59cdd14cb2 Add staff command channel to config and update output channels for stafflist and serverlist to getChannel() in command. 2022-04-16 15:07:11 +02:00
destro174 78cecda508 Add missing channels to commands. 2022-04-14 10:58:18 +02:00
destro174 f2b86e1831 Rework how commands are handled 2022-04-13 10:16:44 +02:00
destro174 d86dd9c0bc Add back stafflist and serverlist in discord. 2022-04-13 09:46:10 +02:00
Teriuihi 92c1ee42a9 Queries api if member is null 2022-03-09 05:14:25 +01:00
Teriuihi 56313ef3f9 Fixed link not sending code 2022-03-03 02:33:38 +01:00
Teriuihi ca303d267b Updated stuff 2022-03-02 16:44:24 +01:00
Teriuihi 4b94502668 Update dependencies 2022-02-18 20:33:49 +01:00
destro174 c749d29471 Add publishing 2022-02-15 09:43:02 +01:00
Teriuihi be26ab2d7e Fixed database not finding driver 2022-02-13 19:34:43 +01:00
Teriuihi f5519811ed Added litebans dependency 2022-02-13 19:34:25 +01:00
Teriuihi 3a1caef887 Added uuid to ban message, only ban ppl who are linked 2022-02-08 00:18:23 +01:00
Teriuihi 2d05ec61af Fixed database query and changed to only unban bans that were with the same reason as the auto ban 2022-02-03 01:15:30 +01:00