lots of nonworking code

This commit is contained in:
Luke Rogers 2013-10-13 17:32:08 +13:00
parent ed2eefb9cd
commit d330df5711
9 changed files with 75 additions and 34 deletions

View file

@ -3,6 +3,7 @@ from core import bot
import os
import sys
import time
import signal
# check python version
@ -30,9 +31,15 @@ signal.signal(signal.SIGINT, exit_gracefully)
cloudbot = bot.Bot()
cloudbot.run()
# wait for the bot loop to stop
if cloudbot.do_restart:
# this kills the bot
# TODO: make it not just kill the bot
time.sleep(2)
sys.exit()
else:
print "wtf"
time.sleep(2)
sys.exit()