Commit 75647c7c authored by m!nus's avatar m!nus

added tool to dump addresses of all servers

parent 88a88860
#!/usr/bin/env python3
from teeworlds.teeworlds import create_masters, query_masters
from teeworlds.base import EventSocket
from teeworlds.server import Server
sock = EventSocket(idle_limit=2.0)
masterlist = create_masters(sock)
for m in masterlist:
m.on_server_add = lambda s: print(s.address)
query_masters(masterlist)
sock.run()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment