forked from MarseyWorld/MarseyWorld
14 lines
300 B
Python
14 lines
300 B
Python
from random import choice
|
|
|
|
from .const_stateful import marsey_mappings
|
|
|
|
def marsify(text):
|
|
new_text = ''
|
|
for x in text.split(' '):
|
|
new_text += f'{x} '
|
|
x = x.lower()
|
|
if len(x) >= 5 and x in marsey_mappings:
|
|
marsey = choice(marsey_mappings[x])
|
|
new_text += f':{marsey}: '
|
|
return new_text
|