diff options
| author | 2019-09-20 17:07:48 +0100 | |
|---|---|---|
| committer | 2019-09-20 17:07:48 +0100 | |
| commit | ecf48aa33efda66b9d9c57b9c555a0a510d3596a (patch) | |
| tree | db567b5dbea10ec9ce7b061bd5eeee236ab5979b /modules | |
| parent | add missing ")" in CREATE query (diff) | |
| signature | ||
generate() takes a channel id, not a channel
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/markov.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
