From ecf48aa33efda66b9d9c57b9c555a0a510d3596a Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 20 Sep 2019 17:07:48 +0100 Subject: [PATCH] generate() takes a channel id, not a channel --- modules/markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/markov.py b/modules/markov.py index 45385756..69091ef5 100644 --- a/modules/markov.py +++ b/modules/markov.py @@ -37,7 +37,7 @@ class Module(ModuleManager.BaseModule): "INSERT OR REPLACE INTO markov VALUES (?, ?, ?, ?, ?)", [event["channel"].id]+insert+[frequency]) - print(self.generate(event["channel"])) + print(self.generate(event["channel"].id)) def _choose(self, words): words, frequencies = list(zip(*words))