use of main.java.sneakerbot.loaders.Config.ConfigObject in project SneakerBot by Penor.
the class Bot method init.
public static void init() {
taskCount = 0;
usedAccounts = 0;
accounts = AdidasAccount.load("data/accounts.txt");
proxies = Proxy.load("data/proxies.txt");
usedProxies = new ArrayList<ProxyObject>();
credentials = Credentials.load("data/credentials.json");
configs = Config.load("data/config.json");
captchas = new ArrayList<CaptchaResponse>();
for (Object config : configs.stream().toArray()) taskCount += (int) ((ConfigObject) config).getTasks();
pool = new ThreadPool(taskCount);
}
Aggregations