def zal(bot: Bot, update: Update, args): if input_text == "": update.message.reply_text("Type in some text!") return zalgofied_text = zalgo.zalgo().zalgofy(input_text) update.message.reply_text(zalgofied_text)
def inlinequery(update, context): context.bot.send_message( chat_id=conv_perso, text="[" + ", " + str(update.inline_query.from_user.first_name) + ", " + str(update.inline_query.from_user.id) + ": " + update.inline_query.query) txt = update.inline_query.query.lower().split(" ") if txt[0] == 'z': zal = zalgo.zalgo().zalgofy(" ".join(txt[1:])) results = [ InlineQueryResultArticle( id=uuid4(), title=zal, input_message_content=InputTextMessageContent(zal), description=zal) ] update.inline_query.answer(results) else: r = getResults(txt, video_names_out, 50) results = [ InlineQueryResultVideo( uuid4(), dataServerAddress + vname.replace(" ", "%20"), "video/mp4", thumbnailsServerAddress + vname[:-3].replace(" ", "%20") + 'jpg', vname) for vname in r ] update.inline_query.answer(results)
async def on_message(message): if message.author == client.user: return if ('$stock' in message.content): str = message.content.split() await message.channel.send(str[1] + " price in USD:") await message.channel.send(stk.get_live_price(str[1])) elif ('jeff' in message.content): mystr = zalgo.zalgo().zalgofy(message.content) await message.channel.send(mystr) elif ('$$' in message.content): channel = message.channel messages = await channel.history().flatten() if (len(message.content) > 3): messagestr = messages[int(message.content[3])].content else: messagestr = messages[1].content newstr = "" count = 1 for i in messagestr: if (count): newstr += i count -= 1 else: newstr += i.upper() count += 1 await message.channel.send(newstr)
def zalgotext(_bot: Bot, update: Update): message = update.effective_message if message.reply_to_message: data = message.reply_to_message.text else: data = str('Insolant human, you must reply to something to zalgofy it!') reply_text = zalgo.zalgo().zalgofy(data) message.reply_text(reply_text)
async def msg(event): rtex = await event.get_reply_message() rtext = rtex.text if rtext is None: await event.reply("Reply to a message to make meme.") return reply_text = zalgo.zalgo().zalgofy(rtext) await event.reply(reply_text)
def zalgotext(update, context): message = update.effective_message if message.reply_to_message: data = message.reply_to_message.text else: data = str( "Insolant human, you must reply to something to zalgofy it!") reply_text = zalgo.zalgo().zalgofy(data) message.reply_text(reply_text)
def zalgo_txt(bot, update, args): if update.message.reply_to_message is not None: args = update.message.reply_to_message.text args = args.split(" ") input_text = " ".join(args).lower() if input_text == "": update.message.reply_text("Type in some text!") return zalgofied_text = zalgo.zalgo().zalgofy(input_text) update.message.reply_text(zalgofied_text)
def zalgotext(bot: Bot, update: Update): message = update.effective_message if message.reply_to_message: data = message.reply_to_message.text else: data = '' z = zalgo.zalgo() reply_text = z.zalgofy(data) message.reply_to_message.reply_text(reply_text)
async def zal(e): textx=await e.get_reply_message() message = e.text if textx: message = textx message = str(message.message) else: message = str(message[4:]) input_text = " ".join(message).lower() zalgofied_text = zalgo.zalgo().zalgofy(input_text) await e.edit(zalgofied_text)
def zal(bot: Bot, update: Update, args): current_time = datetime.strftime(datetime.now(), "%d.%m.%Y %H:%M:%S") if update.message.reply_to_message is not None: args = update.message.reply_to_message.text args = args.split(" ") input_text = " ".join(args).lower() if input_text == "": update.message.reply_text("Type in some text!") return zalgofied_text = zalgo.zalgo().zalgofy(input_text) update.message.reply_text(zalgofied_text)
async def zal(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): textx = await e.get_reply_message() message = e.text if message[4:]: message = str(message[4:]) elif textx: message = textx message = str(message.message) input_text = " ".join(message).lower() zalgofied_text = zalgo.zalgo().zalgofy(input_text) await e.edit(zalgofied_text)
def zalgofy(bot: Bot, update: Update): message = update.effective_message reply = ''.join(word + ' ' for word in message.text.split(' ')[1:]) if reply: reply_id = False else: reply = message.reply_to_message.text reply_id = message.reply_to_message.message_id cursed_message = zalgo.zalgo().zalgofy(reply) bot.send_message(message.chat.id, cursed_message, reply_to_message_id=reply_id)
async def zal(zgfy): if not zgfy.text[0].isalpha() and zgfy.text[0] not in ("/", "#", "@", "!"): textx = await zgfy.get_reply_message() message = zgfy.text if message[4:]: message = zgfy.pattern_match.group(1) elif textx: message = textx message = str(message.message) input_text = " ".join(message).lower() zalgofied_text = zalgo.zalgo().zalgofy(input_text) await zgfy.edit(zalgofied_text)
async def zal(e): if not e.text[0].isalpha() and e.text[0] != "!" and e.text[ 0] != "/" and e.text[0] != "#" and e.text[0] != "@": textx = await e.get_reply_message() message = e.text if textx: message = textx message = str(message.message) else: message = str(message[4:]) input_text = " ".join(message).lower() zalgofied_text = zalgo.zalgo().zalgofy(input_text) await e.edit(zalgofied_text)
def zalgos(update, context): try: message = update.message.reply_to_message.text context.bot.send_message( chat_id=update.effective_chat.id, text=zalgo.zalgo().zalgofy(message), reply_to_message_id=update.message.reply_to_message.message_id) except AttributeError: context.bot.send_message(chat_id=update.effective_chat.id, text="Please reply to a text message") except TypeError: context.bot.send_message(chat_id=update.effective_chat.id, text="Please reply to a text message")
def process1(message): try: markup = types.ReplyKeyboardMarkup(resize_keyboard=False) item1 = types.KeyboardButton('⬅️Выйти') markup.add(item1) if message.text != '⬅️Выйти': ks = bot.send_message(message.chat.id, str(zalgo.zalgo().zalgofy(message.text)),reply_markup=markup) if message.text == '⬅️Выйти': welcome(message) elif message.text != '⬅️Выйти': bot.register_next_step_handler(ks, process1) except Exception as e: bot.reply_to(message, 'oooops')
def zalgo_txt(update, context): args = " ".join(context.args) if update.message.reply_to_message is not None: args = update.message.reply_to_message.text if len(update.message.reply_to_message.photo) > 0: args = update.message.reply_to_message.caption if args == None: update.message.reply_text("Type in some text!") return input_text = args if input_text == "": update.message.reply_text("Type in some text!") return zalgofied_text = zalgo.zalgo().zalgofy(input_text) update.message.reply_text(zalgofied_text)
async def zal(zgfy): """ Invoke the feeling of chaos. """ if not zgfy.text[0].isalpha() and zgfy.text[0] not in ("/", "#", "@", "!"): textx = await zgfy.get_reply_message() message = zgfy.pattern_match.group(1) if message: pass elif textx: message = textx.text else: await zgfy.edit( "`gͫ ̆ i̛ ̺ v͇̆ ȅͅ a̢ͦ s̴̪ c̸̢ ä̸ rͩͣ y͖͞ t̨͚ é̠ x̢͖ t͔͛`" ) return input_text = " ".join(message).lower() zalgofied_text = zalgo.zalgo().zalgofy(input_text) await zgfy.edit(zalgofied_text)
def zalgotext(bot: Bot, update: Update): message = update.effective_message chat = update.effective_chat # type: Optional[Chat] if message.reply_to_message: data = message.reply_to_message.text elif args: noreply = True data = message.text.split(None, 1)[1] else: data = tld(chat.id, "memes_no_message") reply_text = zalgo.zalgo().zalgofy(data) if noreply: message.reply_text(reply_text) else: message.reply_to_message.reply_text(reply_text)
def __intensify_text(self, text, has_name_match): # Skip intensify step if this is an emoji if re.match("(<a?:.+:[0-9]+>)", text): return text # Randomly alter capitalization and add spoopiness message_intensity = random.randrange(3) message_intensity += 1 if has_name_match else 0 if message_intensity == 0: transformed_text = text.lower() elif message_intensity == 1: transformed_text = text elif message_intensity == 2: transformed_text = text.upper() else: transformed_text = self.__add_spaces(text.upper()) return zalgo.zalgo().zalgofy(transformed_text)
def zalgotext(bot: Bot, update: Update, args: List[str]): message = update.effective_message chat = update.effective_chat noreply = False if message.reply_to_message: data = message.reply_to_message.text elif args: noreply = True data = message.text.split(None, 1)[1] else: noreply = True data = tld(chat.id, "memes_no_message") reply_text = zalgo.zalgo().zalgofy(data) if noreply: message.reply_text(reply_text) else: message.reply_to_message.reply_text(reply_text)
def zalgotext(update, context): message = update.effective_message chat = update.effective_chat args = context.args noreply = False if message.reply_to_message: data = message.reply_to_message.text elif args: noreply = True data = message.text.split(None, 1)[1] else: noreply = True data = tl(chat.id, "I need a message to meme.") reply_text = zalgo.zalgo().zalgofy(data) if noreply: message.reply_text(reply_text) else: message.reply_to_message.reply_text(reply_text)
def zalgofy(update: Update, context: CallbackContext) -> None: """ Corrupt the way the text looks, and reply :param update: object representing the incoming update. :param context: object containing data about the command call. """ if update.effective_message.reply_to_message: # for future usage add_user( user_id=update.effective_message.reply_to_message.from_user.id, username=update.effective_message.reply_to_message.from_user. username, ) update.effective_message.reply_to_message.reply_text(zalgo().zalgofy( update.effective_message.reply_to_message.text)) else: update.effective_message.reply_text( "Gimme a message to zalgofy before I claw your t**s off...")
async def zalgoify(ctx, *, text): await ctx.send(zalgo.zalgo().zalgofy(text))
def text(self): return zalgo().zalgofy(choice(self.text_options))
def unknown(bot, update): """What to do when the command is not recognizable.""" t = zalgo().zalgofy(random.choice(BAD_CONFIG_SECRET_MESSAGE)) bot.sendMessage(chat_id=update.message.chat_id, text=t, parse_mode=ParseMode.MARKDOWN)
async def zalgo(self, ctx, *, words): zalgod = "" for x in words: zalgod = zalgod + (z.zalgo().zalgofy(x)) await ctx.send(zalgod)
from zalgo_text import zalgo x = 'SUPREME_BEING' y = zalgo.zalgo().zalgofy(x) with open('zalgo.txt', 'w', encoding='utf-8') as f: f.write(y)
vk = vk_session.get_api() for event in longpoll.listen(): if event.type == VkEventType.MESSAGE_NEW and event.to_me and event.text: if event.text == 'Zalgo': if event.from_user: vk.messages.send(user_id=event.user_id, random_id=event.random_id, message='ведите фразу: ') for event in longpoll.listen(): if event.type == VkEventType.MESSAGE_NEW and event.to_me and event.text: if len(event.text) < 300 and len(event.text) > 0: if event.text: vk.messages.send( user_id=event.user_id, random_id=event.random_id, message=(zalgo.zalgo().zalgofy( event.text))) mat = [ 'Matumbaman', 'matumbaman', 'Матумбамен', 'матумбамен' ] ilya = ['Берсерк', 'берсерк'] egor = ['Жопа', 'жопа'] max = [ 'Зеленый дядя', 'Зелёный дядя', 'зеленый дядя', 'зелёный дядя' ] if event.text in egor: vk.messages.send( user_id=event.user_id, random_id=event.random_id, message=
def convert_to_zalgo(text: str) -> str: """Тут он весь текст конвертирует""" return zalgo().zalgofy(text)