2020-06-24 16:58:31 -04:00
|
|
|
|
from random import choice
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
2020-09-13 13:50:36 -04:00
|
|
|
|
from ubot import ldr
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
emoji = list("😂😝🤪🤩😤🥵🤯🥶😱🤔😩🙄💀👻🤡😹👀👁👌💦🔥🌚🌝🌞🔫💯")
|
|
|
|
|
b_emoji = "🅱️"
|
|
|
|
|
a_emoji = "🅰️"
|
|
|
|
|
i_emoji = "ℹ️"
|
|
|
|
|
|
2020-05-04 12:39:09 -04:00
|
|
|
|
filler = "Give me some text to fuck it up!"
|
|
|
|
|
|
2023-10-16 09:46:31 -04:00
|
|
|
|
owo_faces = "owo uwu owu uwo u-u o-o OwO UwU @-@ ;-; ;_; ._. (._.) (o-o) ('._.) (。◕‿‿◕。)" \
|
|
|
|
|
" (。◕‿◕。) (─‿‿─) ◔⌣◔ ◉_◉".split(sep=" ")
|
|
|
|
|
|
|
|
|
|
zal_chars = " ̷̡̛̮͇̝͉̫̭͈͗͂̎͌̒̉̋́͜ ̵̠͕͍̩̟͚͍̞̳̌́̀̑̐̇̎̚͝ ̸̻̠̮̬̻͇͈̮̯̋̄͛̊͋̐̇͝͠ ̵̧̟͎͈̪̜̫̪͖̎͛̀͋͗́̍̊͠ ̵͍͉̟͕͇͎̖̹̔͌̊̏̌̽́̈́͊ͅ ̷̥͚̼̬̦͓͇̗͕͊̏͂͆̈̀̚͘̚ ̵̢̨̗̝̳͉̱̦͖̔̾͒͊͒̎̂̎͝ ̵̞̜̭̦̖̺͉̞̃͂͋̒̋͂̈́͘̕͜ ̶̢̢͇̲̥̗̟̏͛̇̏̊̑̌̔̚ͅͅ ̷̮͖͚̦̦̞̱̠̰̍̆̐͆͆͆̈̌́ ̶̲͚̪̪̪͍̹̜̬͊̆͋̄͒̾͆͝͝ ̴̨̛͍͖͎̞͍̞͕̟͑͊̉͗͑͆͘̕ ̶͕̪̞̲̘̬͖̙̞̽͌͗̽̒͋̾̍̀ ̵̨̧̡̧̖͔̞̠̝̌̂̐̉̊̈́́̑̓ ̶̛̱̼̗̱̙͖̳̬͇̽̈̀̀̎̋͌͝ ̷̧̺͈̫̖̖͈̱͎͋͌̆̈̃̐́̀̈".replace(" ", "")
|
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("cp")
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def copypasta(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("mock")
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def mock(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
mock_text = await mockify(text_arg)
|
|
|
|
|
|
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(mock_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(mock_text)
|
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("vap")
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def vapor(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
vapor_text = await vaporize(text_arg)
|
|
|
|
|
|
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(vapor_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(vapor_text)
|
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("pop")
|
2020-03-23 20:58:45 -04:00
|
|
|
|
async def popifycmd(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2020-03-23 20:58:45 -04:00
|
|
|
|
|
|
|
|
|
pop_text = await popify(text_arg)
|
|
|
|
|
|
2020-03-24 11:03:53 -04:00
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(pop_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(pop_text)
|
2020-03-23 20:58:45 -04:00
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("cheem")
|
2020-03-23 20:58:45 -04:00
|
|
|
|
async def cheemifycmd(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2020-03-23 20:58:45 -04:00
|
|
|
|
|
|
|
|
|
cheems_text = await cheemify(text_arg)
|
|
|
|
|
|
2020-03-24 11:03:53 -04:00
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(cheems_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(cheems_text)
|
2020-03-23 20:58:45 -04:00
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("zal")
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def zalgo(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
zalgo_text = await zalgofy(text_arg)
|
|
|
|
|
|
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(zalgo_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(zalgo_text)
|
|
|
|
|
|
|
|
|
|
|
2020-05-02 17:04:27 -04:00
|
|
|
|
@ldr.add("owo")
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def owo(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2023-10-16 09:46:31 -04:00
|
|
|
|
|
|
|
|
|
owo_text = await owoify(text_arg)
|
|
|
|
|
|
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(owo_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(owo_text)
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 13:02:29 -04:00
|
|
|
|
@ldr.add("yoda")
|
|
|
|
|
async def yodafy(event):
|
2021-02-13 12:06:21 -05:00
|
|
|
|
text_arg, reply = await event.get_text(default=filler, return_msg=True)
|
2020-06-17 13:02:29 -04:00
|
|
|
|
|
|
|
|
|
async with ldr.aioclient.get("http://yoda-api.appspot.com/api/v1/yodish", params={"text": text_arg}) as response:
|
|
|
|
|
if response.status == 200:
|
|
|
|
|
yoda_text = (await response.json())["yodish"]
|
|
|
|
|
else:
|
2020-06-17 16:55:50 -04:00
|
|
|
|
await event.reply(f"An error occurred: **{response.status}**")
|
2020-06-17 13:02:29 -04:00
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if reply:
|
|
|
|
|
await reply.reply(yoda_text)
|
|
|
|
|
else:
|
|
|
|
|
await event.reply(yoda_text)
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 09:46:31 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
2020-03-23 20:58:45 -04:00
|
|
|
|
async def popify(text):
|
|
|
|
|
text = text.replace(" ", "!_")
|
|
|
|
|
|
|
|
|
|
return text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def cheemify(text):
|
2020-03-23 21:04:38 -04:00
|
|
|
|
text = text.replace("ese", "ms")
|
|
|
|
|
text = text.replace("se", "mse")
|
2020-03-23 20:58:45 -04:00
|
|
|
|
text = text.replace("ck", "mk")
|
2020-03-24 11:01:14 -04:00
|
|
|
|
text = text.replace("ake", "amke")
|
2020-03-23 20:58:45 -04:00
|
|
|
|
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")
|
2020-03-23 21:01:58 -04:00
|
|
|
|
text = text.replace("pep", "pemp")
|
|
|
|
|
text = text.replace("pop", "pomp")
|
|
|
|
|
text = text.replace("rib", "rimb")
|
2020-03-23 20:58:45 -04:00
|
|
|
|
|
|
|
|
|
return text
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 09:46:31 -04:00
|
|
|
|
async def mockify(text):
|
|
|
|
|
mock_text = ""
|
|
|
|
|
|
|
|
|
|
for letter in text:
|
2020-04-17 11:55:42 -04:00
|
|
|
|
if choice([True, False]):
|
2023-10-16 09:46:31 -04:00
|
|
|
|
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
|