File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { queryGameServerInfo } from 'npm:steam-server-query' ;
2
2
3
3
// 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 ]
6
6
7
7
// this was a short cut i wrote because
8
8
// i was to lazy to write all of the ports
9
9
// 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) }
13
11
14
12
// this holds the raw data from the quries before they are sorted
15
13
let onlineData : any [ ] = [ ] ;
@@ -113,4 +111,4 @@ setInterval(fetchDataAndWriteToFile, 60000);
113
111
// This is to prevent the connection to the server from timing out
114
112
function delay ( ms : number ) {
115
113
return new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
116
- }
114
+ }
You can’t perform that action at this time.
0 commit comments