Example #1
0
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}**")
Example #2
0
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}**")
Example #3
0
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}`")
Example #4
0
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}`")
Example #5
0
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']}` ")
Example #6
0
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']}` ")
Example #7
0
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}`")
Example #8
0
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}**")
Example #9
0
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}**")
Example #10
0
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}**")
Example #11
0
async def on_snip_delete(event):
    name = event.pattern_match.group(1)
    remove_snip(name)
    await event.reply("Note ?{} deleted successfully".format(name))