diff --git a/src/main/java/sh/adb/sensorCommunityAPI/Main.java b/src/main/java/sh/adb/sensorCommunityAPI/Main.java index 3fd31fd..5fc80f3 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/Main.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/Main.java @@ -8,16 +8,12 @@ public class Main { public static void main(String[] args) throws IOException { DataStore store = new DataStore(); JSONObject config = store.readJSON("config.json"); - if (config == null){ - config = store.readJSON("example.config.json"); - } + if (config == null) config = store.readJSON("example.config.json"); DataStoreBot bot = new DataStoreBot( config.get("storePath").toString(), config.get("apiURL").toString() ); - bot.setInterval(Integer.parseInt( - config.get("interval").toString() - )); + bot.setInterval((int)(long) config.get("interval")); } }