remove debug print
This commit is contained in:
parent
81cf1ab58f
commit
fa405df36a
1 changed files with 0 additions and 2 deletions
|
@ -37,8 +37,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
"INSERT OR REPLACE INTO markov VALUES (?, ?, ?, ?, ?)",
|
"INSERT OR REPLACE INTO markov VALUES (?, ?, ?, ?, ?)",
|
||||||
[event["channel"].id]+insert+[frequency])
|
[event["channel"].id]+insert+[frequency])
|
||||||
|
|
||||||
print(self.generate(event["channel"].id))
|
|
||||||
|
|
||||||
def _choose(self, words):
|
def _choose(self, words):
|
||||||
words, frequencies = list(zip(*words))
|
words, frequencies = list(zip(*words))
|
||||||
return random.choices(words, weights=frequencies, k=1)[0]
|
return random.choices(words, weights=frequencies, k=1)[0]
|
||||||
|
|
Loading…
Reference in a new issue