From c90445aaf07b421294709b083ac3d2ee2c502da8 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 27 Nov 2019 22:41:59 +0300 Subject: [PATCH] fix mtg --- bots/modules/_mtg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/_mtg.py b/bots/modules/_mtg.py index b605b0a..a1d7cb3 100644 --- a/bots/modules/_mtg.py +++ b/bots/modules/_mtg.py @@ -68,7 +68,7 @@ class MTG(object): while not (len(gen_words) > size and w2 == '.'): gen_words.append(w2.capitalize() if (w1 == '.') else w2) w1, w2 = w2, random.choice(self.MC[w1 + '+' + w2]) - gen_words.append(w2) + gen_words.append(w2) text = ' '.join(gen_words) text = text.replace(' ,', ',').replace(' .', '.') return text