diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java index bc912ec3..8839f3bd 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/Main.java @@ -17,7 +17,7 @@ import java.util.concurrent.ScheduledExecutorService; public class Main { public static final List bots = new ArrayList<>(); - public static final ScheduledExecutorService executor = Executors.newScheduledThreadPool(50); + public static final ScheduledExecutorService executor = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors()); public static void main(String[] args) throws IOException { final File file = new File("config.yml");