This commit is contained in:
Luke Rogers 2014-02-15 18:32:51 +13:00
parent 3fde4692d1
commit 16ddabfe2a
5 changed files with 12 additions and 147 deletions

View file

@ -45,6 +45,7 @@ def get_logger():
logger.addHandler(sh)
return logger
class Bot(threading.Thread):
def __init__(self):
# basic variables
@ -163,4 +164,4 @@ class Bot(threading.Thread):
def restart(self, reason=None):
"""shuts the bot down and restarts it"""
self.do_restart = True
self.stop(reason)
self.stop(reason)