Commit Graph

118 Commits

Author SHA1 Message Date
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
Teriuihi 16996e95e2 handle luckperm user being null 2022-01-11 01:05:30 +01:00
Teriuihi 5cd8f5c894 use player_uuid instead of uuid 2022-01-11 01:05:13 +01:00
Teriuihi a287e11d84 Check if they are active instead of just if they have an entry 2022-01-11 01:05:01 +01:00
Teriuihi 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
destro174 bad541cc65 update dependencies and repositories 2021-12-26 14:02:47 +01:00
destro174 c44be4ebd7 make jda public for api usage 2021-09-23 17:22:30 +02:00
destro174 89549ef12f add publishing plugin to gradle 2021-09-22 20:30:05 +02:00