Commit Graph
100 Commits
Author SHA1 Message Date
auto e8e3293416 Update Jenkinsfile to include Nexus credentials for Gradle build
Integrated `NEXUS_CREDS` environment variable for secure handling of Nexus credentials during the Gradle shadowJar task.
2025-06-21 00:59:42 +02:00
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 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
auto 645b019f8d Fixed nick command having copy pasted initializer from another command 2023-01-30 02:17:58 +01:00
auto a40a838e7a Don't respond to commands that might be handled by other bot instances 2023-01-04 02:31:35 +01:00
auto c144a71d47 Removed unused discord commands 2022-12-27 18:53:47 +01:00
auto 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
auto fd5f89c755 Fix missing description for command 2022-12-27 18:53:16 +01:00
auto df69f0e607 Register commands after jda starts 2022-12-27 18:53:03 +01:00
auto 0674989716 Improved error message 2022-12-27 18:52:48 +01:00
auto ebbabea0b9 Fixed logger 2022-12-27 18:52:33 +01:00
auto bc8a8b9141 Remove linked role if user isn't linked in the db anymore 2022-12-27 18:51:29 +01:00
auto 29d0757279 Improved link check (gives more info) 2022-12-27 18:51:02 +01:00
auto 130d8b027a Deleted old commands 2022-12-19 02:56:55 +01:00
auto c045aba112 Added ServerList StaffList and Broadcast (added sync but not implemented yet) 2022-12-19 02:56:11 +01:00
auto cfeb04fe6e Added Nick and Unlink command 2022-12-19 02:27:41 +01:00
auto 9f389a8a12 Use embeds and fix not using command data 2022-12-19 01:53:37 +01:00
auto 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
auto b39a155711 Reworked link command 2022-12-18 22:43:34 +01:00
auto 197c510d0d Reworked link command 2022-12-18 22:43:20 +01:00
auto 7b895443ab Re-structured configs 2022-12-18 21:35:37 +01:00
auto fd9ed1f8eb Updated JDA 2022-12-18 19:24:06 +01:00
auto ac314cdcf5 Merge remote-tracking branch 'origin/master' 2022-05-30 20:09:37 +02:00
auto 05cc57ddec Updated minimessage 2022-05-30 20:09:20 +02:00
auto 92c1ee42a9 Queries api if member is null 2022-03-09 05:14:25 +01:00
auto 56313ef3f9 Fixed link not sending code 2022-03-03 02:33:38 +01:00
auto ca303d267b Updated stuff 2022-03-02 16:44:24 +01:00
auto 4b94502668 Update dependencies 2022-02-18 20:33:49 +01:00
auto be26ab2d7e Fixed database not finding driver 2022-02-13 19:34:43 +01:00
auto f5519811ed Added litebans dependency 2022-02-13 19:34:25 +01:00
auto 3a1caef887 Added uuid to ban message, only ban ppl who are linked 2022-02-08 00:18:23 +01:00
auto 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
auto 16996e95e2 handle luckperm user being null 2022-01-11 01:05:30 +01:00
auto 5cd8f5c894 use player_uuid instead of uuid 2022-01-11 01:05:13 +01:00
auto a287e11d84 Check if they are active instead of just if they have an entry 2022-01-11 01:05:01 +01:00
auto e26a3c23c6 Updated everything, added a check for if someone leaves the discord so it auto unlinks them if they do, and added auto bans/unbans based on litebans bans/unbans 2021-12-27 05:00:51 +01:00
auto 5236b11241 check if nick is null 2021-09-20 23:50:26 +02:00
auto 80a6c5df7e Fixed issues with discordlink 2021-09-20 23:41:14 +02:00
auto 1a70fd4fd4 changed stuff for whitelistkick 2021-09-20 23:00:45 +02:00
auto 6100adaf93 Removed a todo 2021-09-20 04:04:28 +02:00
auto 9744eddd35 Fixed some minor syncing issues 2021-09-20 04:03:44 +02:00
auto 1c2eeec78a Add and remove roles from internal cache where needed 2021-09-20 03:29:52 +02:00
auto 8b42cfea43 Get the key not the whole value 2021-09-20 03:29:25 +02:00
auto e690da0731 Don't try to sink if player isn't linked 2021-09-20 03:29:07 +02:00
auto f1cb98da10 Sync roles 2021-09-20 03:05:27 +02:00
auto 42931b2761 Fixed being unable to unlink 2021-09-20 02:36:47 +02:00
auto 722e1ea01b This should work but it doesn't 2021-09-18 15:03:42 +02:00
auto cfbc84c8b6 Don't do both 2021-09-18 14:56:59 +02:00
auto d4e3b9504a Notify user when they aren't linked and try to unlink 2021-09-17 20:05:57 +02:00
auto c3ed2fb7c4 Added message to show unlinked worked 2021-09-17 16:31:33 +02:00
auto 44a335bf12 Changed channelId to long 2021-09-17 16:31:21 +02:00
auto 49e53fb01c Allow linking for unlinked players while the server is whitelisted 2021-09-17 15:59:01 +02:00
auto 7a0d49fcb6 Added discord nick command 2021-09-16 18:13:34 +02:00
auto 6afb451be1 Don't return null for suggest 2021-09-16 17:59:37 +02:00
auto 5f2c099981 Don't return null for suggest 2021-09-16 17:59:30 +02:00
auto b932bb5045 Don't return null for suggest 2021-09-16 17:59:23 +02:00
auto 64fb975cfe use uuid 2021-09-16 17:59:12 +02:00
auto 529c2efe5a Fixed using incorrect function 2021-09-16 17:58:56 +02:00
auto 4ae5e16cbc Fixed not updating the user when updating roles 2021-09-16 17:58:35 +02:00
auto 94b7855da3 Let the player know if they linked correctly 2021-09-16 17:57:32 +02:00
auto 235e60cf56 Removed unused imports
return all players for suggest
2021-09-16 17:57:08 +02:00
auto 34463ae4b8 Fixed incorrect naming in database 2021-09-16 17:56:29 +02:00
auto 17d8c5e4e2 Removed alias 2021-09-16 17:56:09 +02:00
auto fb67d7c6c4 Only show commands you have perms for 2021-09-16 17:55:49 +02:00
auto 242605c6fb Converted to long for discord_id for database and removed unneeded data 2021-09-16 16:58:15 +02:00
auto 899ddb8703 Add boolean for nicknames remove unneeded columns 2021-09-16 16:04:45 +02:00
auto d28aa77cc7 Add boolean for nicknames 2021-09-16 16:04:35 +02:00
auto 3671d33dc7 Add boolean for nicknames allow changing user/nick name 2021-09-16 16:04:20 +02:00
auto 4d8b7b60f6 Sync nickname if needed 2021-09-16 16:03:48 +02:00
auto f6276227b9 Added changeNick funtion 2021-09-16 15:53:07 +02:00
auto abd6db884d Use nick function in the bot class 2021-09-16 15:52:55 +02:00
auto d4cf97754d Sync names on player join 2021-09-16 15:52:23 +02:00
auto 3c5cdeb8f9 Added LINKED_ROLE_ID setting 2021-09-16 15:36:52 +02:00
auto 87691e80b3 Added function to get UUID from playerCacheCode 2021-09-16 15:36:33 +02:00
auto 635e8884ef Removed cache table
Added account_roles table
Added function to add roles to a discord link user
2021-09-16 15:36:15 +02:00
auto 5f8dc66320 Added DiscordUnlink to loaded commands 2021-09-16 15:35:25 +02:00
auto 3c8173fff9 Switched to modular role system 2021-09-16 15:35:04 +02:00
auto 0e2de7e0bb Added DiscordUnlink 2021-09-16 15:34:41 +02:00
auto ce0f8ffc85 Added function to get internal name 2021-09-16 15:33:07 +02:00
auto 5b90ffd275 Added function to get all syncable roles for a user 2021-09-16 15:32:51 +02:00
auto 50fee977fe Remove synced roles when unlinking 2021-09-16 15:32:20 +02:00
auto 613c179c50 Added DiscordLinkCommand 2021-09-16 15:32:05 +02:00
auto 4741a8effc Added boolean to see if it should be synced to discord
Added internal name for role (the name in the config)
2021-09-16 13:15:55 +02:00
auto ef46387dc8 Use configurable server prefix 2021-09-16 13:14:51 +02:00
auto f3f4625f14 Removed prefix from syntax (if we ever use it, it should display the server prefix instead) 2021-09-16 13:14:19 +02:00
auto b3f9280822 Made prefixes configurable per server 2021-09-15 15:10:52 +02:00
auto 3d950f5fee Removed code that synced through database instead of directly 2021-09-12 20:39:48 +02:00
auto 420d044153 More syncing roles stuff 2021-09-12 01:26:44 +02:00
auto 1aa1563ec1 Initial commit for syncing roles 2021-09-12 00:40:22 +02:00