async def on_snip_delete(event): try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: return await event.edit("`Running on Non-SQL mode!`") name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Successfully deleted snip:` **{name}**") else: await event.edit(f"`Couldn't find snip:` **{name}**")
async def on_snip_delete(event): """ For .remsnip command, deletes a snip. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: return await event.edit("`Running on Non-SQL mode!`") name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Snip berhasil dihapus:` **{name}**") else: await event.edit(f"`Tidak dapat menemukan snip:` **{name}**")
async def on_snip_delete(event): """ For .remsnip command, deletes a snip. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: return await event.edit("**Executando em modo não SQL!**") name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"**Snip excluído com sucesso:** `{name}`") else: await event.edit(f"**Não foi possível encontrar o snip:** `{name}`")
async def on_snip_delete(event): """For .remsnip command, deletes a snip.""" try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: return await event.edit("**Running on Non-SQL mode!**") name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"**Successfully deleted snip:** `{name}`") else: await event.edit(f"**Couldn't find snip:** `{name}`")
async def on_snip_delete(event): """ .remsnip komutu belirlenini snipi siler. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("`SQL dışı modda çalışıyor!`") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Snip:` **{name}** `{LANG['DELETED']}`") else: await event.edit(f"`Snip:` **{name}** `{LANG['NOT_FOUND']}` ")
async def on_snip_delete(event): """ .remsnip əmri göstərdiyiniz snipi silər. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("`SQL dan kənar modda işləyir!`") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Snip:` **{name}** `{LANG['DELETED']}`") else: await event.edit(f"`Snip:` **{name}** `{LANG['NOT_FOUND']}` ")
async def on_snip_delete(event): """For .delcostum command, deletes a costum.""" try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("**Berjalan pada mode Non-SQL!**") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"**Berhasil menghapus costum:** `{name}`") else: await event.edit(f"**Tidak dapat menemukan costum:** `{name}`")
async def on_snip_delete(event): """ For .remsnip command, deletes a snip. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("`Running on Non-SQL mode!`") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Snip eliminato correttamente:` **{name}**") else: await event.edit(f"`Impossibile trovare snip:` **{name}**")
async def on_snip_delete(event): """ For .remsnip command, deletes a snip. """ try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("`Executando em modo não-SQL!`") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Recorte excluído com sucesso:` **{name}**") else: await event.edit(f"`Não foi possível encontrar recorte:` **{name}**")
async def on_snip_delete(event): """ For .remsnip command, deletes a snip. """ if environ.get("isSuspended") == "True": return try: from userbot.modules.sql_helper.snips_sql import remove_snip except AttributeError: await event.edit("`Running on Non-SQL mode!`") return name = event.pattern_match.group(1) if remove_snip(name) is True: await event.edit(f"`Successfully deleted snip:` **{name}**") else: await event.edit(f"`Couldn't find snip:` **{name}**")
async def on_snip_delete(event): name = event.pattern_match.group(1) remove_snip(name) await event.reply("Note ?{} deleted successfully".format(name))