remove debug print

This commit is contained in:
jesopo 2019-09-20 17:19:12 +01:00
parent 81cf1ab58f
commit fa405df36a

View file

@ -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]