Trying something...

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-23 16:16:58 +01:00
parent 003c8b8567
commit 2e4cd0207d

View file

@ -16,7 +16,7 @@ class Possy(markovify.NewlineText):
def sanitizeText(text):
split = text.split()
try:
if "@" in (text[0], text[1]):
if text[0] == "@" or text[1] == "@":
if split[1][0] not in string.ascii_lowercase:
return sanitizeText(" ".join(split[1:]))
if split[-1][0] == "@":