Markov chain works with /markov command

This commit is contained in:
AB
2020-02-07 14:51:19 +00:00
parent 92686ed13d
commit 9a6bb39440
3 changed files with 39 additions and 16 deletions

View File

@ -168,7 +168,7 @@ class DataBase:
def get_random_message(self):
sql = "SELECT text FROM xxx_message ORDER BY RANDOM() LIMIT 1"
result = self.execute(sql)
return(result)
return(result[0][0])
def here(self, user_id, conf_id):
sql = """