moth/uberserv.py

26 lines
470 B
Python
Raw Normal View History

2009-08-31 21:15:13 -06:00
#! /usr/bin/env python3
import asyncore
import pointsd
import game
2009-08-31 21:15:13 -06:00
import flagd
2009-09-01 09:34:15 -06:00
import histogram
2009-08-31 21:15:13 -06:00
def main():
2009-09-01 09:34:15 -06:00
pointsrv = pointsd.start()
flagsrv = flagd.start()
2009-09-29 15:36:25 -06:00
if config.enabled('roshambo'):
import roshambo
roshambosrv = roshambo.start()
2009-09-01 09:34:15 -06:00
s = pointsrv.store
slen = 0
while True:
asyncore.loop(timeout=30, use_poll=True, count=1)
if len(s) > slen:
slen = len(s)
histogram.main(s)
2009-08-31 21:15:13 -06:00
main()