'start' -> 'first_word'
This commit is contained in:
parent
c253d17f54
commit
7656fb9b51
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
stderr.write("Failed to generate markov chain")
|
stderr.write("Failed to generate markov chain")
|
||||||
|
|
||||||
def _generate(self, channel_id, first_word):
|
def _generate(self, channel_id, first_word):
|
||||||
if start == None:
|
if first_word == None:
|
||||||
first_words = self.bot.database.execute_fetchall("""SELECT
|
first_words = self.bot.database.execute_fetchall("""SELECT
|
||||||
third_word, frequency FROM markov WHERE channel_id=? AND
|
third_word, frequency FROM markov WHERE channel_id=? AND
|
||||||
first_word IS NULL AND second_word IS NULL AND third_word
|
first_word IS NULL AND second_word IS NULL AND third_word
|
||||||
|
|
Loading…
Reference in a new issue