Repository navigation
Expand file tree
/
Copy pathexample.py
More file actions
69 lines (57 loc) · 1.58 KB
/
Copy pathexample.py
File metadata and controls
69 lines (57 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from game_servers_status import PingTesterBase
lat = PingTesterBase(game="csgo", host="216.52.148.47", port=27015, timeout=5).getServerPing()
print(lat)
ptb = PingTesterBase(game="csgo", host="216.52.148.47", port=27015, timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)
ptb = PingTesterBase(game="csgo", host="216.52.148.47:27015", timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)
ptb = PingTesterBase(game="csgo", host="216.52.148.47", timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)
ptb = PingTesterBase(game="minecraft", host="server.minesuperior.com", timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)
ptb = PingTesterBase(game="csgo", host="8.8.8.8", port=27015, timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)
ptb = PingTesterBase(game="minecraft", host="8.8.8.8", timeout=5)
isAlive = ptb.isServerAlive()
latency = ptb.getServerPing()
print(latency)
print(isAlive)
print(ptb.game.latency)
print(ptb.game.is_alive)
print(ptb.Monitor())
del(ptb)