Trying something...
This commit is contained in:
parent
bf5561fbf6
commit
2793a5cd9d
1 changed files with 1 additions and 1 deletions
|
@ -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] == "@":
|
||||
|
|
Loading…
Reference in a new issue