2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-24 11:08:35 +00:00
microbot/ubot/modules/memes.py
2023-10-16 09:54:09 -04:00

207 lines
5.4 KiB
Python
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from random import choice
from ubot import ldr
emoji = list("😂😝🤪🤩😤🥵🤯🥶😱🤔😩🙄💀👻🤡😹👀👁👌💦🔥🌚🌝🌞🔫💯")
b_emoji = "🅱️"
a_emoji = "🅰️"
i_emoji = ""
filler = "Give me some text to fuck it up!"
owo_faces = "owo uwu owu uwo u-u o-o OwO UwU @-@ ;-; ;_; ._. (._.) (o-o) ('._.) (。◕‿‿◕。)" \
" (。◕‿◕。) (─‿‿─) ◔⌣◔ ◉_◉".split(sep=" ")
zal_chars = " ̷̡̛̮͇̝͉̫̭͈͗͂̎͌̒̉̋́͜ ̵̠͕͍̩̟͚͍̞̳̌́̀̑̐̇̎̚͝ ̸̻̠̮̬̻͇͈̮̯̋̄͛̊͋̐̇͝͠ ̵̧̟͎͈̪̜̫̪͖̎͛̀͋͗́̍̊͠ ̵͍͉̟͕͇͎̖̹̔͌̊̏̌̽́̈́͊ͅ ̷̥͚̼̬̦͓͇̗͕͊̏͂͆̈̀̚͘̚ ̵̢̨̗̝̳͉̱̦͖̔̾͒͊͒̎̂̎͝ ̵̞̜̭̦̖̺͉̞̃͂͋̒̋͂̈́͘̕͜ ̶̢̢͇̲̥̗̟̏͛̇̏̊̑̌̔̚ͅͅ ̷̮͖͚̦̦̞̱̠̰̍̆̐͆͆͆̈̌́ ̶̲͚̪̪̪͍̹̜̬͊̆͋̄͒̾͆͝͝ ̴̨̛͍͖͎̞͍̞͕̟͑͊̉͗͑͆͘̕ ̶͕̪̞̲̘̬͖̙̞̽͌͗̽̒͋̾̍̀ ̵̨̧̡̧̖͔̞̠̝̌̂̐̉̊̈́́̑̓ ̶̛̱̼̗̱̙͖̳̬͇̽̈̀̀̎̋͌͝ ̷̧̺͈̫̖̖͈̱͎͋͌̆̈̃̐́̀̈".replace(" ", "")
@ldr.add("cp")
async def copypasta(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
text_arg = await shitpostify(text_arg)
text_arg = await mockify(text_arg)
text_arg = await emojify(text_arg)
cp_text = await vaporize(text_arg)
if reply:
await reply.reply(cp_text)
else:
await event.reply(cp_text)
@ldr.add("mock")
async def mock(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
mock_text = await mockify(text_arg)
if reply:
await reply.reply(mock_text)
else:
await event.reply(mock_text)
@ldr.add("vap")
async def vapor(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
vapor_text = await vaporize(text_arg)
if reply:
await reply.reply(vapor_text)
else:
await event.reply(vapor_text)
@ldr.add("cheem")
async def cheemifycmd(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
cheems_text = await cheemify(text_arg)
if reply:
await reply.reply(cheems_text)
else:
await event.reply(cheems_text)
@ldr.add("zal")
async def zalgo(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
zalgo_text = await zalgofy(text_arg)
if reply:
await reply.reply(zalgo_text)
else:
await event.reply(zalgo_text)
@ldr.add("owo")
async def owo(event):
text_arg, reply = await event.get_text(default=filler, return_msg=True)
owo_text = await owoify(text_arg)
if reply:
await reply.reply(owo_text)
else:
await event.reply(owo_text)
async def shitpostify(text):
text = text.replace("dick", "peepee")
text = text.replace("ck", "cc")
text = text.replace("lol", "honk honk")
text = text.replace("though", "tho")
text = text.replace("cat", "pussy")
text = text.replace("dark", "dank")
return text
async def popify(text):
text = text.replace(" ", "!_")
return text
async def cheemify(text):
text = text.replace("ese", "ms")
text = text.replace("se", "mse")
text = text.replace("ck", "mk")
text = text.replace("ake", "amke")
text = text.replace("as", "ams")
text = text.replace("n", "m")
text = text.replace("ab", "amb")
text = text.replace("lp", "lmp")
text = text.replace("ke", "mke")
text = text.replace("ec", "emc")
text = text.replace("ig", "img")
text = text.replace("ob", "omb")
text = text.replace("pep", "pemp")
text = text.replace("pop", "pomp")
text = text.replace("rib", "rimb")
return text
async def mockify(text):
mock_text = ""
for letter in text:
if choice([True, False]):
mock_text += letter.lower()
else:
mock_text += letter.upper()
return mock_text
async def emojify(text):
text = text.replace("ab", "🆎")
text = text.replace("cl", "🆑")
text = text.replace("b", "🅱️")
text = text.replace("a", "🅰️")
text = text.replace("i", "")
text = text.replace("AB", "🆎")
text = text.replace("CL", "🆑")
text = text.replace("B", "🅱️")
text = text.replace("A", "🅰️")
text = text.replace("I", "")
emoji_text = ""
for letter in text:
if letter == " ":
emoji_text += choice(emoji)
else:
emoji_text += letter
return emoji_text
async def vaporize(text):
vapor_text = ""
char_distance = 65248
for letter in text:
ord_letter = ord(letter)
if ord('!') <= ord_letter <= ord('~'):
letter = chr(ord_letter + char_distance)
vapor_text += letter
return vapor_text
async def owoify(text):
text = text.replace("r", "w")
text = text.replace("R", "W")
text = text.replace("n", "ny")
text = text.replace("N", "NY")
text = text.replace("ll", "w")
text = text.replace("LL", "W")
text = text.replace("l", "w")
text = text.replace("L", "W")
text += f" {choice(owo_faces)}"
return text
async def zalgofy(text):
zalgo_text = ""
for letter in text:
if letter == " ":
zalgo_text += letter
continue
letter += choice(zal_chars)
letter += choice(zal_chars)
letter += choice(zal_chars)
zalgo_text += letter
return zalgo_text