emoji cipher change
This commit is contained in:
parent
bcb0f2470a
commit
e9c805f8ed
@ -23,9 +23,9 @@ gothic_dict = {
|
||||
|
||||
# For emoji substitution
|
||||
emoji_dict = {
|
||||
'a': '🅰️', 'b': '🅱️', 'c': '🌜', 'd': '🌛', 'e': '📧', 'f': '🎏', 'g': '🌀', 'h': '♓', 'i': 'ℹ️',
|
||||
'j': '🎷', 'k': '🎋', 'l': '👢', 'm': 'Ⓜ️', 'n': '♑', 'o': '⚽', 'p': '🅿️', 'q': '🍳', 'r': '🌱',
|
||||
's': '💲', 't': '🌴', 'u': '⛎', 'v': '♈', 'w': '🔱', 'x': '❎', 'y': '🍸', 'z': 'Ⓩ'
|
||||
'a': '🇦', 'b': '🇧', 'c': '🇨', 'd': '🇩', 'e': '🇪', 'f': '🇫', 'g': '🇬', 'h': '🇭', 'i': '🇮',
|
||||
'j': '🇯', 'k': '🇰', 'l': '🇱', 'm': '🇲', 'n': '🇳', 'o': '🇴', 'p': '🇵', 'q': '🇶', 'r': '🇷',
|
||||
's': '🇸', 't': '🇹', 'u': '🇺', 'v': '🇻', 'w': '🇼', 'x': '🇽', 'y': '🇾', 'z': '🇿'
|
||||
}
|
||||
|
||||
# For Zalgo translation
|
||||
@ -41,6 +41,16 @@ morse_code_dict = {
|
||||
'?': '..--..', '/': '-..-.', '-': '-....-', '(': '-.--.', ')': '-.--.-', ' ': '/'
|
||||
}
|
||||
|
||||
|
||||
class Mutator:
|
||||
pass
|
||||
|
||||
|
||||
class SubstututionCipher(Mutator):
|
||||
def apply(text: str, cipher: dict[str, str]):
|
||||
return "".join(cipher.get(c.lower(), c) for c in text)
|
||||
|
||||
|
||||
def uwu(text: str) -> str:
|
||||
"""
|
||||
Returns an 'uwuified' version of the given string.
|
||||
@ -225,9 +235,8 @@ def cat_speak(text: str) -> str:
|
||||
return " ".join(cat_text)
|
||||
|
||||
def nerdify(text: str) -> str:
|
||||
nerdy_phrases = ['quark', 'photon', 'nanobot', 'AI', 'quantum', 'algorithm']
|
||||
words = text.split()
|
||||
return ' '.join(word + random.choice(nerdy_phrases) if random.random() < 0.3 else word for word in words)
|
||||
text.replace(".", "☝️🤓.")
|
||||
return text
|
||||
|
||||
def backward_words(text: str) -> str:
|
||||
return ' '.join(word[::-1] for word in text.split())
|
||||
@ -295,11 +304,11 @@ mutator_map = {
|
||||
"VAL": valley_girl,
|
||||
"DEG": degeneracy,
|
||||
"CAT": cat_speak,
|
||||
"NRD": (),
|
||||
"BKW": (),
|
||||
"RNG": (),
|
||||
"RAS": (),
|
||||
"SHK": (),
|
||||
"RBT": (),
|
||||
"EMI": (),
|
||||
"NRD": nerdify,
|
||||
"BKW": backward_words,
|
||||
"RNG": lambda: None,
|
||||
"RAS": lambda: None,
|
||||
"SHK": lambda: None,
|
||||
"RBT": lambda: None,
|
||||
"EMI": lambda: None,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user