async def on_add_black_list(event): starksayxd = await edit_or_reply(event, "Trying To Set This Text As Blacklist xD") text = event.pattern_match.group(1) to_blacklist = list(set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await starksayxd.edit("Added {} triggers to the blacklist in the current chat".format(len(to_blacklist)))
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await event.edit("Aggiunti {} trigger in questa chat".format( len(to_blacklist)))
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await event.edit("⌔︙تمت الاضافه {} الى القائمه المحضورة 🚫".format( len(to_blacklist)))
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await edit_or_reply( event, "`Mevcut sohbette kara listeye {} kelime eklendi`".format( len(to_blacklist)))
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await edit_or_reply( event, "Added {} triggers to the blacklist in the current chat".format( len(to_blacklist)), )
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( {trigger.strip() for trigger in text.split("\n") if trigger.strip()} ) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await edit_or_reply( event, "** - ◁︱تم {} منع الڪلمه ༗،**".format(len(to_blacklist)), )
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( {trigger.strip() for trigger in text.split("\n") if trigger.strip()}) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await edit_or_reply( event, "مـضاف {} الـى القائمه السـوداء تـم حظـر الكـلمة 𖠕".format( len(to_blacklist)), )
async def on_add_black_list(event): text = event.pattern_match.group(1) to_blacklist = list( {trigger.strip() for trigger in text.split("\n") if trigger.strip()}) for trigger in to_blacklist: sql.add_to_blacklist(event.chat_id, trigger.lower()) await edit_or_reply( event, "Ditambahkan {} Memicu daftar hitam pada obrolan saat ini".format( len(to_blacklist)), )