aboutsummaryrefslogtreecommitdiff
path: root/modules/markov.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-23 10:41:01 +0100
committerGravatar jesopo2019-09-23 10:41:01 +0100
commit6ee9bcc51f591e1ba0f4446e380589f6bbb08fb3 (patch)
treeee3310ce7b32c517b15308c71a1afbb87214558a /modules/markov.py
parentpush markov loading half on to a background thread that takes the main thread (diff)
signature
add default value of self._load_thread
Diffstat (limited to 'modules/markov.py')
-rw-r--r--modules/markov.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/markov.py b/modules/markov.py
index 9e6a8eb7..6459d292 100644
--- a/modules/markov.py
+++ b/modules/markov.py
@@ -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