i forgor that i .submit() exists

This commit is contained in:
Chayapak 2023-06-10 18:58:46 +07:00
parent 2fb7646bcf
commit b0ac19e9fc
3 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ public class TranslateCommand implements Command {
final Gson gson = new Gson(); final Gson gson = new Gson();
bot.executorService().execute(() -> { bot.executorService().submit(() -> {
try { try {
final URL url = new URL("https://translate.google.com/translate_a/single?client=at&dt=t&dt=rm&dj=1"); final URL url = new URL("https://translate.google.com/translate_a/single?client=at&dt=t&dt=rm&dj=1");

View file

@ -49,7 +49,7 @@ public class UrbanCommand implements Command {
final Gson gson = new Gson(); final Gson gson = new Gson();
bot.executorService().execute(() -> { bot.executorService().submit(() -> {
try { try {
final URL url = new URL( final URL url = new URL(
"https://api.urbandictionary.com/v0/define?term=" + "https://api.urbandictionary.com/v0/define?term=" +

View file

@ -48,7 +48,7 @@ public class WikipediaCommand implements Command {
final Gson gson = new Gson(); final Gson gson = new Gson();
bot.executorService().execute(() -> { bot.executorService().submit(() -> {
try { try {
final URL url = new URL( final URL url = new URL(
"https://en.wikipedia.org/api/rest_v1/page/summary/" + "https://en.wikipedia.org/api/rest_v1/page/summary/" +