forked from ChomeNS/chomens-bot-java
i forgor that i .submit() exists
This commit is contained in:
parent
2fb7646bcf
commit
b0ac19e9fc
3 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ public class TranslateCommand implements Command {
|
|||
|
||||
final Gson gson = new Gson();
|
||||
|
||||
bot.executorService().execute(() -> {
|
||||
bot.executorService().submit(() -> {
|
||||
try {
|
||||
final URL url = new URL("https://translate.google.com/translate_a/single?client=at&dt=t&dt=rm&dj=1");
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public class UrbanCommand implements Command {
|
|||
|
||||
final Gson gson = new Gson();
|
||||
|
||||
bot.executorService().execute(() -> {
|
||||
bot.executorService().submit(() -> {
|
||||
try {
|
||||
final URL url = new URL(
|
||||
"https://api.urbandictionary.com/v0/define?term=" +
|
||||
|
|
|
@ -48,7 +48,7 @@ public class WikipediaCommand implements Command {
|
|||
|
||||
final Gson gson = new Gson();
|
||||
|
||||
bot.executorService().execute(() -> {
|
||||
bot.executorService().submit(() -> {
|
||||
try {
|
||||
final URL url = new URL(
|
||||
"https://en.wikipedia.org/api/rest_v1/page/summary/" +
|
||||
|
|
Loading…
Reference in a new issue