diff options
| author | 2019-09-23 10:41:01 +0100 | |
|---|---|---|
| committer | 2019-09-23 10:41:01 +0100 | |
| commit | 6ee9bcc51f591e1ba0f4446e380589f6bbb08fb3 (patch) | |
| tree | ee3310ce7b32c517b15308c71a1afbb87214558a /modules | |
| parent | push 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')
| -rw-r--r-- | modules/markov.py | 2 |
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 |
