Closed cyberbu11y closed 7 years ago
This is the error message in the console.
Edit the config.properties file and set user_commands to {}
Or rather, what is the current value? Are you using a release or did you build the program from sources yourself?
I used the release, this message appears when I open the program right after downloading.
config.properties: twitch_user=your Twitch username twitch_oauth_key=your Twitch oauth token last_plugin= user_commands={}
And is it still not working after changing to {} ? IIRC it shouldn't prevent you from using the bot, only from creating custom commands
No, it doesn't work (the config.properties came like that). I don't think any of the other stuff is working either.
I use a mac if it has anything to do with it but java should still work
By the way, it can't work if you haven't put your Twitch stuff in the file. Check wiki for how to configure
Be careful with the !np command for osu, I don't have any Mac OS computer around so it doesn't support it. If you agree to help me support Macs, I'd be delighted :3
Sure! I'd be happy to. would be even better if I got some java experience as well
After configuring Nuclearbot, it still gives the same error, even with my token and username inputted and user_commands={}.
it's still that? Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
weird... I'll check on that later today.. If you configured properly you should be able to use everything else besides !np
Aye, I'll build a release, I finally came back to the project and cleaned all this mess up :'3
[2016-09-8 04:26:00] ERROR: (GUI) JSON syntax error while loading user commands: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ at com.google.gson.Gson.fromJson(Gson.java:899) at com.google.gson.Gson.fromJson(Gson.java:852) at com.google.gson.Gson.fromJson(Gson.java:801) at com.google.gson.Gson.fromJson(Gson.java:773) at nuclearbot.gui.ControlPanel.loadUserCommands(ControlPanel.java:644) at nuclearbot.gui.ControlPanel.<init>(ControlPanel.java:553) at nuclearbot.Main.run(Main.java:61) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) at com.google.gson.Gson.fromJson(Gson.java:887) ... 20 more