'_on_load' -> 'on_load'

This commit is contained in:
jesopo 2019-09-20 17:15:21 +01:00
parent 532d1687c3
commit 4ccd3084ed

View file

@ -2,7 +2,7 @@ import random
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
def _on_load(self): def on_load(self):
if not self.bot.database.has_table("markov"): if not self.bot.database.has_table("markov"):
self.bot.database.execute("""CREATE TABLE markov self.bot.database.execute("""CREATE TABLE markov
(channel_id INTEGER, first_word TEXT, second_word TEXT, (channel_id INTEGER, first_word TEXT, second_word TEXT,