first_word.lower() -> first_words[0].lower()

This commit is contained in:
jesopo 2019-09-30 16:31:13 +01:00
parent f49f34a98f
commit a9021813e5

View file

@ -135,7 +135,7 @@ class Module(ModuleManager.BaseModule):
second_word = self._choose(second_words) second_word = self._choose(second_words)
words = [first_word, second_word] words = [first_word, second_word]
elif len(first_words) == 1: elif len(first_words) == 1:
first_word = first_word.lower() first_word = first_words[0].lower()
second_two_words = self.bot.database.execute_fetchall("""SELECT second_two_words = self.bot.database.execute_fetchall("""SELECT
second_word, third_word, frequency FROM markov WHERE second_word, third_word, frequency FROM markov WHERE
channel_id=? AND first_word=? AND second_word NOT NULL AND channel_id=? AND first_word=? AND second_word NOT NULL AND