Repetition quest def process_repetition self member mystr if quest_wor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Repetition quest
def process_repetition(self, member, mystr):
if quest_words:
quest_words = self.question[1].split(' ')
msg = u'Повторяю: ' + self.question[0] + u' ('
if len(quest_words) == 1:
msg += unicode(len(self.question[1]))+u' букв'+ self.get_ending(len(self.question[1]), 1)+')'
else:
msg += u', '.join(unicode(len(x)) for x in quest_words[:-1])
msg += u' и ' + unicode(len(quest_words[-1])) + u' букв)'
self.send_msg(msg)