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} '
|
2022-09-01 22:38:33 +00:00
|
|
|
x = x.lower()
|
2022-09-01 22:47:09 +00:00
|
|
|
if len(x) > 3 and x in marsey_mappings:
|
2022-08-30 12:11:05 +00:00
|
|
|
marsey = choice(marsey_mappings[x])
|
|
|
|
new_text += f':{marsey}: '
|
2022-09-29 05:43:29 +00:00
|
|
|
return new_text
|