This commit is contained in:
Chayapak 2023-05-07 19:06:12 +07:00
parent b9dce506dd
commit 4631ef5a8b

View file

@ -17,7 +17,7 @@ import java.util.concurrent.ScheduledExecutorService;
public class Main {
public static final List<Bot> 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");