forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers/marsify.py

11 lines
277 B
Python
Raw Normal View History

2022-08-27 02:57:19 +00:00
from .const import marsey_mappings
2022-08-30 12:11:05 +00:00
from random import choice
2022-08-27 02:57:19 +00:00
def marsify(text):
2022-08-30 12:11:05 +00:00
new_text = ''
for x in text.split(' '):
new_text += f'{x} '
if 3 < len(x) < 10 and x in marsey_mappings:
marsey = choice(marsey_mappings[x])
new_text += f':{marsey}: '
return new_text