xlash123 / KHUx-Discord-Bot

A Discord bot that will aid players in getting information about the mobile game Kingdom Hearts Union X.
12 stars 7 forks source link

Chat categories are not compatible with the bot #22

Closed BladeofRagna closed 7 years ago

BladeofRagna commented 7 years ago

This has only happened recently, but the bot is failing to respond. Lux notification isn't going off, and the bot can pull medal data. I'm sure this happened before, but I can't remember the solution to fix it.

Here's what happens when I attempt to use the bot. https://gyazo.com/78ef8715e323c58a295209ed0bfa0bd4

xlash123 commented 7 years ago

Confirm that you are using the latest version 1.4.4 and the bot token you are using is valid.

BladeofRagna commented 7 years ago

I can confirm I am using the latest version and the bot token is valid.

xlash123 commented 7 years ago

Have you restarted the bot? If so, do a few actions and copy the entire log.

BladeofRagna commented 7 years ago

Yeah I've restarted countless times now. https://gyazo.com/22ef0bf7f04d004daf85d70b04418f4e

This is all I can see that seems to be wrong

xlash123 commented 7 years ago

Link a pastebin of the entire log. I can't see why the issue is happening without the context.

BladeofRagna commented 7 years ago

Ehh not entirely sure how to do that.. lol From what I can see without everything freaking out, the bot is connecting to the server, yet it says it isn't connected... it's so weird.

xlash123 commented 7 years ago

In the bot's console window: Ctrl+A, Ctrl+C Go to pastebin.com Ctrl+V and create new paste Link it here

BladeofRagna commented 7 years ago

No idea why, but Ctrl+A doesn't do anything and Ctrl+C kills the bot entirely.

xlash123 commented 7 years ago

Oh right. Ctrl+C kills processes in cmd. Right-click on the title bar of command prompt, select Edit->Select All, then right click again, select Edit->Copy, then do the pastebin thing. I assume you are using Windows 10?

BladeofRagna commented 7 years ago

Using windows 7 actually. lol

BladeofRagna commented 7 years ago

https://pastebin.com/aWcDJLe3

Alright. Looking at this, alot of stuff gets cut off >.< So I don't know if anything here helps

xlash123 commented 7 years ago

Make a copy of your config folder, rename it, and delete the original. Put in the bot token when the bot asks for it, and see if that fixes the issue. This is unlike any error I've seen and I think it may have to do with corrupted config.

BladeofRagna commented 7 years ago

Alright, did that and it didn't fix it. I even redownloaded the bot entirely as a fail-safe and that still didn't fix it. I'm gonna wait till tomorrow morning and see if the problem persists. And if it does, I'll let you know.

xlash123 commented 7 years ago

Try updating your Java version. Or you can use my host: https://www.reddit.com/r/KingdomHearts/comments/6q7ic8/khux_discord_bot_update_multiserver_support/?st=J7ZO5LFS&sh=f9bb2d06

BladeofRagna commented 7 years ago

Restarted my computer, uninstalled, and reinstalled Java, and yet despite all that the problem is still persisting. I'll just have to use your host for now.

The one thing I have noticed which has happened consistently, is the whole "JSONObject["Type"] not a string" part. Maybe that has to do with the new discord update that added the chat categories.

xlash123 commented 7 years ago

Possibly. The issue could likely be fixed when the Discord API library I’m using gets updated.

BladeofRagna commented 7 years ago

Gotcha. And I did just try to use your host. That's not working either LOL! So I guess the issue is discords new update

daltowon commented 7 years ago

Odd. I haven't had any bot issues in the latest Discord update, and I'm using the hosted version.

BladeofRagna commented 7 years ago

Very odd. I'm gonna try and delete the channal cats. and see if that does anything.

xlash123 commented 7 years ago

Yeah. The issue seems to be with something between the Discord API and your server. The bot functions properly except for your server. I’ll still keep looking for a solution to this.

BladeofRagna commented 7 years ago

OK! I can confirm now that the chat categories in the new discord update stops the bot from responding properly. Deleting them did the trick.

xlash123 commented 7 years ago

Thanks. I will update the description and let you know when it gets fixed.

BladeofRagna commented 7 years ago

Cool!

xlash123 commented 7 years ago

Library update did the trick. Worked fine on testing server when I created a category.

Resolved in 1.4.5.