Compare commits
No commits in common. "68f5366a2ae2ddaac7420532804a57ef0d19a614" and "8b52a56a7f27c1e5a2ff160187b22d64b290932a" have entirely different histories.
68f5366a2a
...
8b52a56a7f
@ -53,8 +53,7 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
|
|||||||
current_question = store.get(message.chat.id)
|
current_question = store.get(message.chat.id)
|
||||||
if current_question is not None:
|
if current_question is not None:
|
||||||
self.send("Вот ответ на вопрос", message.chat.id)
|
self.send("Вот ответ на вопрос", message.chat.id)
|
||||||
text = questions[current_question]['answer']
|
text_split = [current_question['answer'][i:i+1000] for i in range(0, len(current_question['answer']), 1000)]
|
||||||
text_split = [text[i:i+1000] for i in range(0, len(text), 1000)]
|
|
||||||
for elem in text_split:
|
for elem in text_split:
|
||||||
self.send(elem, message.chat.id)
|
self.send(elem, message.chat.id)
|
||||||
selected = randrange(len(questions))
|
selected = randrange(len(questions))
|
||||||
|
Loading…
Reference in New Issue
Block a user