add default value of self._load_thread

This commit is contained in:
jesopo 2019-09-23 10:41:01 +01:00
parent 28cdf05a47
commit 6ee9bcc51f

View file

@ -4,6 +4,8 @@ from src import ModuleManager, utils
NO_MARKOV = "Markov chains not enabled in this channel"
class Module(ModuleManager.BaseModule):
_load_thread = None
def on_load(self):
if not self.bot.database.has_table("markov"):
self.bot.database.execute("""CREATE TABLE markov