db stuff
This commit is contained in:
parent
3fde4692d1
commit
16ddabfe2a
5 changed files with 12 additions and 147 deletions
|
@ -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)
|
Reference in a new issue