From a9021813e5bf8bba497b0d79efe9a87e92c79e25 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 30 Sep 2019 16:31:13 +0100 Subject: [PATCH] first_word.lower() -> first_words[0].lower() --- modules/markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/markov.py b/modules/markov.py index bff01c7e..28ba894c 100644 --- a/modules/markov.py +++ b/modules/markov.py @@ -135,7 +135,7 @@ class Module(ModuleManager.BaseModule): second_word = self._choose(second_words) words = [first_word, second_word] 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_word, third_word, frequency FROM markov WHERE channel_id=? AND first_word=? AND second_word NOT NULL AND