async def on_snip_list(event): """For .snips command, lists snips saved by you.""" try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: return await event.edit("**Executando em modo não SQL!**") message = "**Nenhum snip disponível no momento.**" all_snips = get_snips() for a_snip in all_snips: if message == "**Nenhum snip disponível no momento.**": message = "**Snips disponíveis:**\n\n" message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: return await event.edit("**Running on Non-SQL mode!**") message = "**No snips available right now.**" all_snips = get_snips() for a_snip in all_snips: if message == "**No snips available right now.**": message = "**Available snips:**\n\n" message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """For .costums command, lists costums saved by you.""" try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("**Berjalan pada mode Non-SQL!**") return message = "**Tidak ada kostum yang tersedia saat ini.**" all_snips = get_snips() for a_snip in all_snips: if message == "**Tidak ada kostum yang tersedia saat ini.**": message = "**List Costum yang tersedia:**\n" message += f"✣ `.{a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: return await event.edit("`Running on Non-SQL mode!`") message = "`Tidak ada snips yang tersedia saat ini.`" all_snips = get_snips() for a_snip in all_snips: if message == "`Tidak ada snips yang tersedia saat ini.`": message = "Snips yang tersedia:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ .snips komutu sizin tarafınızdan kaydedilen snip'leri listeler. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`SQL dışı modda çalışıyor!`") return message = LANG['NO_SNIP'] all_snips = get_snips() for a_snip in all_snips: if message == LANG['NO_SNIP']: message = f"{LANG['SNIPS']}:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ .snips əmri yaddaşda saxlanan bütün snipləri sizin üçün göstərər. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`SQL dan kənar modda işləyir!`") return message = LANG['NO_SNIP'] all_snips = get_snips() for a_snip in all_snips: if message == LANG['NO_SNIP']: message = f"{LANG['SNIPS']}:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Running on Non-SQL mode!`") return message = "`Nessun snip disponibile adesso.`" all_snips = get_snips() for a_snip in all_snips: if message == "`Nessun snip disponibile adesso.`": message = "Snips disponibili:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ .snips komutu sizin tarafınızdan kaydedilen snip'leri listeler. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`SQL dışı modda çalışıyor!`") return message = "`Şu anda hiçbir snip mevcut değil.`" all_snips = get_snips() for a_snip in all_snips: if message == "`Şu anda hiçbir snip mevcut değil.`": message = "Mevcut snipler:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ .snips """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`SQL xarici modda işləyir!`") return message = LANG['NO_SNIP'] all_snips = get_snips() for a_snip in all_snips: if message == LANG['NO_SNIP']: message = f"{LANG['SNIPS']}:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("Running on Non-SQL mode!") return message = "No snips available right now." all_snips = get_snips() for a_snip in all_snips: if message == "No snips available right now.": message = "Available snips:\n" message += f"${a_snip.snip}\n" else: message += f"${a_snip.snip}\n" await event.edit(message)
async def on_snip_list(event): """ Untuk perintah .snips, daftar snips yang disimpan oleh Anda. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Berjalan pada mode Non-SQL!`") return message = "`Tidak ada snips yang tersedia saat ini.`" all_snips = get_snips() for a_snip in all_snips: if message == "`No snips available right now.`": message = "Available snips:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Executando em modo não-SQL!`") return message = "`Nenhum recorte disponível no momento.`" all_snips = get_snips() for a_snip in all_snips: if message == "`Nenhum recorte disponível no momento.`": message = "Recortes disponíveis:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Berjalan pada mode Non-SQL!`") return message = "`Tidak snips yang tersedia saat ini.`" all_snips = get_snips() for a_snip in all_snips: if message == "`Tidak snips yang tersedia saat ini.`": message = "Available tersedia:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): """ For .snips command, lists snips saved by you. """ if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Running on Non-SQL mode!`") return message = "`No snips available right now.`" all_snips = get_snips() for a_snip in all_snips: if message == "`No snips available right now.`": message = "Available snips:\n" message += f"- `${a_snip.snip}`\n" else: message += f"- `${a_snip.snip}`\n" await event.edit(message)
async def on_snip_list(event): if environ.get("isSuspended") == "True": return """ For .snips command, lists snips saved by you. """ try: from userbot.modules.sql_helper.snips_sql import get_snips except AttributeError: await event.edit("`Running on Non-SQL mode!`") return message = "`No snips available right now.`" all_snips = get_snips() for a_snip in all_snips: if message == "`No snips available right now.`": message = "Available snips:\n" message += f"`${a_snip.snip}`\n" else: message += f"`${a_snip.snip}`\n" await event.edit(message)