Skip to content

Commit b04aec7

Browse files
authored
Updated the main script
1 parent 0cf872c commit b04aec7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

serverdata.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { queryGameServerInfo } from 'npm:steam-server-query';
22

33
// this is the list of ips that will be queried
4-
const ips = ['144.217.10.50', '198.27.70.76']
5-
const ports = [25001, 25002, 25003]
4+
const ips: string[] = [ "127.0.0.1", "192.168.1.1" ]
5+
const ports: number[] = [ 27015, 27016 ]
66

77
// this was a short cut i wrote because
88
// i was to lazy to write all of the ports
99
// so this just loops thru the range of all the ports
10-
for (let i = 27015; i <= 27069; i++) {
11-
ports.push(i);
12-
}
10+
//for (let i = 27015; i <= 27069; i++) { ports.push(i) }
1311

1412
// this holds the raw data from the quries before they are sorted
1513
let onlineData: any[] = [];
@@ -113,4 +111,4 @@ setInterval(fetchDataAndWriteToFile, 60000);
113111
// This is to prevent the connection to the server from timing out
114112
function delay(ms: number) {
115113
return new Promise(resolve => setTimeout(resolve, ms));
116-
}
114+
}

0 commit comments

Comments
 (0)