Compare commits

..

No commits in common. "8fc56562f39e2d5c8e98114ca7b0f0526d7c22de" and "835d0dffe1186b6a3dd606b46096ff2c25f5cf7a" have entirely different histories.

3 changed files with 21 additions and 1509 deletions

File diff suppressed because it is too large Load diff

View file

@ -3,26 +3,18 @@
This patch adds a message intercept feature with minimal changes to the original code, and adds slash commands. This patch adds a message intercept feature with minimal changes to the original code, and adds slash commands.
The following slash commands are supported: The following slash commands are supported:
- /upper -> Makes text uppercase - /upper
- /lower -> Makes text lowercase - /lower
- /bold -> Makes text bold - /bold
- /spoiler -> Marks your message as a spoiler (same as Discord Desktop) - /spoiler
- /me -> Display text with emphasis (same as Discord Desktop) - /me
- /st -> Puts a strikethrough the message - /st (strikethrough)
- /shrug -> Appends ¯\\_(ツ)_/¯ to your message (same as Discord Desktop) - /shrug
- /tableflip -> Appends (╯°□°)╯︵ ┻━┻ to your message (same as Discord Desktop) - /tableflip
- /unflip -> Appends ┬─┬ ( ゜-゜ノ) to your message (same as Discord Desktop) - /unflip
- /lenny -> Appends ( ͡° ͜ʖ ͡°) to your message - /fw (fullwidth text)
- /owo -> Myakes tyext reawwy owo-ly, nya :3
Following commands are supported, but create less accessible text (so you should probably ensure that no one around you will be affected before you use them): Commands like fw can be generated by `textreplacegen.py` provided in this folder.
- /fw -> Makes text fullwidth (like "    ")
- /small -> Makes text smaller (like "ᴛʜɪs")
- /smaller -> Makes text even smaller (like "ᵗʰvˢ")
- /flip -> Flips text (like "ʇɥıs")
- /clap -> Please :clap: clap
Commands like fw can be generated by `textreplacegen.py` or `textreplacegen-array.py` provided in this folder.
#### Available and tested on: #### Available and tested on:
- 9.0.0 - 9.0.0

View file

@ -1,151 +0,0 @@
smol = {
"a": "",
"b": "ʙ",
"c": "",
"d": "",
"e": "",
"f": "",
"g": "ɢ",
"h": "ʜ",
"i": "ɪ",
"j": "",
"k": "",
"l": "ʟ",
"m": "",
"n": "ɴ",
"o": "",
"p": "",
"q": "ǫ",
"r": "ʀ",
"s": "s",
"t": "",
"u": "",
"v": "",
"w": "",
"x": "x",
"y": "ʏ",
"z": ""
}
smoller = {
"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": ""
}
flipped = {
"a": "ɐ",
"b": "q",
"c": "ɔ",
"d": "p",
"e": "ǝ",
"f": "ɟ",
"g": "ƃ",
"h": "ɥ",
"i": "ı",
"j": "ɾ",
"k": "ʞ",
"l": "ן",
"m": "ɯ",
"n": "u",
"o": "o",
"p": "d",
"q": "b",
"r": "ɹ",
"s": "s",
"t": "ʇ",
"u": "n",
"v": "ʌ",
"w": "ʍ",
"x": "x",
"y": "ʎ",
"z": "z"
}
morse = {
" ": "/ ",
".": ".-.-.- ",
",": "--..-- ",
":": "---... ",
"?": "..--.. ",
"'": ".----. ",
"-": "-....- ",
"/": "-..-. ",
"@": ".--.-. ",
"=": "-...- ",
"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": "--.. ",
"0": "----- ",
"1": ".---- ",
"2": "..--- ",
"3": "...-- ",
"4": "....- ",
"5": "..... ",
"6": "-.... ",
"7": "--... ",
"8": "---.. ",
"9": "----. "
}
code = """
const-string v0, "before"
const-string v1, "after"
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0"""
fw = morse
for entry in fw:
if entry in ["\\", "\""]:
continue
print(code.replace("before", entry).replace("after", fw[entry]))