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

Bot stopped running #21

Closed KeybladeBrett closed 6 years ago

KeybladeBrett commented 6 years ago

The bot cannot run for whatever reason. I love it so much, but it just wont work anymore. It says Exception in thread "main". and closes

xlash123 commented 6 years ago

Make sure you are using the latest version of the bot. Then try running the bot with this command in command prompt:

java -jar "path to bot file" run

Use the quotes. Copy and paste what appears in the console.

KeybladeBrett commented 6 years ago

Running bot version: 1.4.1 Initializing... Got medal list Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(Unknown Source) at xlash.bot.khux.MedalHandler.compileNicknames(MedalHandler.java:177) at xlash.bot.khux.MedalHandler.jpNicknames(MedalHandler.java:108) at xlash.bot.khux.MedalHandler.createNicknames(MedalHandler.java:97) at xlash.bot.khux.MedalHandler.(MedalHandler.java:31) at xlash.bot.khux.KHUxBot.initialize(KHUxBot.java:122) at xlash.bot.khux.KHUxBot.(KHUxBot.java:101) at xlash.bot.khux.KHUxBot.main(KHUxBot.java:96)

xlash123 commented 6 years ago

Ok. Thank you. I will look into this.

KeybladeBrett commented 6 years ago

Yeah, no problem. What time does the lux occur, so I can send out the notification while the bot is down?

xlash123 commented 6 years ago

I have a hosted bot. You can invite it to your server using this link if you choose:

https://discordapp.com/login?redirect_to=%2Foauth2%2Fauthorize%3Fclient_id%3D300117950457708560%26scope%3Dbot%26permissions%3D0

KeybladeBrett commented 6 years ago

ok thank you so much

BladeofRagna commented 6 years ago

Having the same issue too. Glad it isn't something on my end.

BladeofRagna commented 6 years ago

Tried out the bot you're hosting @xlash123 . Doesn't seem to work on my server for some reason. Can't get medal data, latest tweets and such. 🤔

TehPower commented 6 years ago

Looks like this isn't isolated. My instance of the server is having the same issue with the same error that KHZYX is having.

xlash123 commented 6 years ago

I knew there was an issue withe the Tweets, so I wasn't alarmed due to that, but I've confirmed that my server was overloaded. I'm performing a restart, and the bot will be back online shortly. Thank you for bringing this to my attention.

As for the main issue, I'll try to see what could be causing that issue. I don't spend as much time on the bot as before since I'm back in school now, so expect delay.

KeybladeBrett commented 6 years ago

Ok, awesome. We can wait :)

xlash123 commented 6 years ago

Fixed in 1.4.2