increase cutoff for marsey mappings to 5 characters to stop "this" and "with" and the like from getting mapped

pull/143/head
Aevann 2023-04-28 11:14:26 +02:00
parent fea7ecab14
commit 1f76f9f471
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ def marsify(text):
for x in text.split(' '):
new_text += f'{x} '
x = x.lower()
if len(x) > 3 and x in marsey_mappings:
if len(x) >= 5 and x in marsey_mappings:
marsey = choice(marsey_mappings[x])
new_text += f':{marsey}: '
return new_text