diff --git a/bun.lockb b/bun.lockb index cd804a2..958e05a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.ts b/index.ts index e4e8e45..db00785 100644 --- a/index.ts +++ b/index.ts @@ -6,10 +6,12 @@ let serverstatus = 0 runevery15seconds(1) function runevery15seconds(i) { setTimeout(() => { - Gamedig.query({ type: 'minecraft', - host: 'mc.emre-personal.net' + host: 'mc.emre-personal.net', + port: 25565, + debug: true, + socketTimeout: 3000 }).then((state) => { console.log(state); if(serverstatus == 0){ @@ -31,6 +33,7 @@ function runevery15seconds(i) { }).catch((error: any) => { console.log("Server is offline"); + console.log(error) if( serverstatus == 1){ var params = { username: "MC-monitor", @@ -51,6 +54,6 @@ function runevery15seconds(i) { }); runevery15seconds(++i); - }, 15000) + }, 5000) } diff --git a/mc-monitor b/mc-monitor index e4c035c..daf4807 100755 Binary files a/mc-monitor and b/mc-monitor differ