BETA: NumberFormatExeption.forInputString after trying command with " " spaces
Closed this issue · 8 comments
SarcevicAntonio commented
java.lang.NumberFormatException: For input string: "hmm"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at net.dirtydeeds.discordsoundboard.ChatSoundBoardListener.onMessageReceived(ChatSoundBoardListener.java:241)
at net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:326)
at net.dv8tion.jda.core.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:84)
at net.dv8tion.jda.core.handle.MessageCreateHandler.handleDefaultMessage(MessageCreateHandler.java:128)
at net.dv8tion.jda.core.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:50)
at net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:38)
at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:688)
at net.dv8tion.jda.core.requests.WebSocketClient.onTextMessage(WebSocketClient.java:437)
at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)
at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:262)
at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:240)
at com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:965)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:748)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:110)
at com.neovisionaries.ws.client.ReadingThread.run(ReadingThread.java:66)
Seems to be a problem with soundfiles that contain a " " Space in the filename.
Feigenstaub commented
same problem here
z1g commented
All due respect, but it is a pretty common practice to avoid spaces in the name of files for anything Internet related. You really should rename your sound files to include hyphens or under scores in place of spaces.
Darkside138 commented
I could fix the problem. Issue is I was using spaces to delimit parameters.
I'll have to figure out how to tackle this one.
…On Sat, Feb 18, 2017, 4:23 PM z1g ***@***.***> wrote:
All due respect, but it is a pretty common practice to avoid spaces in the
name of files for anything Internet related. You really should rename your
sound files to include hyphens or under scores in place of spaces.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABH_l2jhj0H84nqGfVXqkF2ztvMQISSqks5rd29ygaJpZM4ME4Vs>
.
SarcevicAntonio commented
z1g commented
@LinkPlay9 If it is so obvious why would you open a ticket? Grats on finding what you believe to be a bug and wasting others time.
SarcevicAntonio commented
Sorry for sharing a bug i found. No need to get pissed about it. Calm down.
z1g <notifications@github.com> schrieb am So., 19. Feb. 2017, 00:24:
… @LinkPlay9 <https://github.com/LinkPlay9> If it is so obvious why would
you open a ticket? Grats on finding what you believe to be a bug and
wasting others time.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGYCEJeOEWYs6K0PEVY3GUXYwx2NkZ-pks5rd32ngaJpZM4ME4Vs>
.
z1g commented
You didn't answer the question, nobody is pissed. Have a fantastic day.
georgefrick commented
@LinkPlay9 @z1g
I've submitted a fix for this.