just stop being retarded and crash as you should when an error occurs
This commit is contained in:
parent
768f15ddcd
commit
0b72f58664
@ -109,8 +109,14 @@ public class DiscordHandler extends ListenerAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String contentF = content;
|
final String contentF = content;
|
||||||
new RunnerClient(contentF, mentionedBot, channelName, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment,
|
try {
|
||||||
event, username);
|
new RunnerClient(contentF, mentionedBot, channelName, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment,
|
||||||
|
event, username);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
System.exit(1);
|
||||||
|
//the JDA library wants to keep the program alive even when an error is happening. hopefully this just makes the program crash when an error happens.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user