Eufranio / MagiBridge

A Discord <-> Minecraft chat relay plugin
MIT License
47 stars 27 forks source link

Bot loosing websocket connection on startup due to identification crisis #251

Open TheGunSquad756 opened 1 year ago

TheGunSquad756 commented 1 year ago

I followed the instuctions to the best of my ability, I am using the most recent version of 2.13 downloaded from the official sponge site. I have set up the app and bot ids, created an admin role and enabled all perms for the bot. I have gone into the config files and added channel ids, but whenever I startup the server, it tells me: "java.lang.RuntimeException: MagiBridge errored and could not start, check the logs for the error!" When I checked the logs, this is what I found: "[20:12:58] [pool-2-thread-1/INFO] [magibridge.net.dv8tion.jda.api.JDA]: Login Successful! [20:12:58] [JDA MainWS-ReadThread/INFO] [magibridge.net.dv8tion.jda.internal.requests.WebSocketClient]: Connected to WebSocket [20:12:58] [JDA MainWS-WriteThread/ERROR] [magibridge.net.dv8tion.jda.internal.requests.WebSocketClient]: WebSocket connection was closed and cannot be recovered due to identification issues CloseCode(4014 / Disallowed intents. Your bot might not be eligible to request a privileged intent such as GUILD_PRESENCES or GUILD_MEMBERS.) [20:12:58] [pool-2-thread-1/ERROR] [magibridge]: JDA couldn't start and didn't throw any errors. Make sure your bot has the SERVER MEMBERS INTENT enabled in the application page! See https://github.com/Eufranio/MagiBridge#how-to-magibridge [20:12:58] [pool-2-thread-1/ERROR] [magibridge]: Error loading MagiBridge: java.lang.RuntimeException: MagiBridge errored and could not start, check the logs for the error!"

I'm not too sure what to do. At first I thought it was the sponge api version I downloaded, and after several tries I got one that didn't say it was the wrong API for MagiBridge. However it still will not initialize properly and shuts down as seen in the log above. Can anyone offer a solution? I hope I gave enough information. I put the log and config files below, I had to change the file type of the config file to upload to txt, in the server files its still .conf latest.log MagiBridge .txt

TheGunSquad756 commented 1 year ago

Update, I got the mod to load properly by changing some settings that were not listed in the creation steps. After switching those on in the discord app developer, the mod opened and said the server had started, however, the chat link feature was not working. It gave me a new error message that said I needed to set using Nucleus to false. I'm going to try this in the config soon but for now all it shows is death messages and advancements

TheGunSquad756 commented 1 year ago

Update 2: I changed the settings in the config file to disable Nucleus, and it's still not working properly. The magibridge announces server stops and startups, however, it can only send messages to discord, but no messages from discord are sent to the server. I'm really lost I've gone over all the config settings 4 times and I just can't figure this out. Does anyone know how to fix this or what I'm doing wrong?

TheGunSquad756 commented 1 year ago

Ok, so I went into the discord app developer and turned all on all Privileged Gateway Intents and that seems to have fixed it. sorry for the mess, and thanks for the great mod