Пример #1
0
async def remove_notes(clr):
    if not clr.text[0].isalpha() and clr.text[0] not in ("/", "#", "@", "!"):
        try:
            from userbot.modules.sql_helper.notes_sql import rm_note
        except:
            await clr.edit("`Running on Non-SQL mode!`")
            return
        notename = clr.pattern_match.group(1)
        rm_note(clr.chat_id, notename)
        await clr.edit("```Note removed successfully```")
Пример #2
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    if not clr.text[0].isalpha() and clr.text[0] not in ("/", "#", "@", "!"):
        try:
            from userbot.modules.sql_helper.notes_sql import rm_note
        except AttributeError:
            await clr.edit("`Running on Non-SQL mode!`")
            return
        notename = clr.pattern_match.group(1)
        rm_note(clr.chat_id, notename)
        await clr.edit("```Note removed successfully```")
Пример #3
0
async def remove_notes(clr):
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("`Running on Non-SQL mode!`")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit("`Couldn't find note:` **{}**".format(notename))
    else:
        return await clr.edit("`Successfully deleted note:` **{}**".format(notename))
Пример #4
0
async def remove_notes(clr):
    """For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("**Running on Non-SQL mode!**")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(f"**Couldn't find note:** **{notename}**")
    else:
        return await clr.edit(f"**Successfully deleted note:** **{notename}**")
Пример #5
0
async def remove_notes(clr):
    """For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("**Running on Non-SQL mode!**")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(
            "**Tidak dapat menemukan catatan:** `{}`".format(notename)
        )
    return await clr.edit("**Berhasil Menghapus Catatan:** `{}`".format(notename))
Пример #6
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("**Executando em modo não SQL!**")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(
            f"**Não foi possível encontrar a nota:** **{notename}**")
    else:
        return await clr.edit(f"**Nota excluída com sucesso:** **{notename}**")
Пример #7
0
async def remove_notes(clr):
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("`Bot qeyri-SQL rejimində işləyir!!`")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(" **{}** `{}`".format(notename,
                                                    LANG['CLEAR_NOT_FOUND']))
    else:
        return await clr.edit("**{}** `{}`".format(notename, LANG['CLEAR']))
Пример #8
0
async def remove_notes(clr):
    """ .clear komutu istenilen notu siler. """
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("`Bot Non-SQL modunda çalışıyor!!`")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(" **{}** `{}`".format(notename,
                                                    LANG['CLEAR_NOT_FOUND']))
    else:
        return await clr.edit("**{}** `{}`".format(notename, LANG['CLEAR']))
Пример #9
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("Running on Non-SQL mode!")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit("Couldn't find note: **{}**".format(notename))
    else:
        return await clr.edit(
            "Deleted : **{}** ".format(notename))
Пример #10
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("`Running on Non-SQL mode!`")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(
            "`Tidak menemukan Catatan Mantan :` **{}**".format(notename))
    else:
        return await clr.edit(
            "`Berhasil menghapus kenangan mantan:` **{}**".format(notename))
Пример #11
0
async def remove_notes(clr):
    """ Untuk perintah .clear, hapus catatan dengan nama yang diberikan."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        return await clr.edit("`Berjalan pada mode Non-SQL!`")
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(
            "`Tidak dapat menemukan catatan:` **{}**".format(notename))
    else:
        return await clr.edit(
            "`Catatan berhasil dihapus:` **{}**".format(notename))
Пример #12
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("`Running on Non-SQL mode!`")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit("`Impossibile trovare la nota:` **{}**".format(notename))
    else:
        return await clr.edit(
            "`Nota eliminata correttamente:` **{}**".format(notename))
Пример #13
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("`Berjalan pada mode Non-SQL!`")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit(
            "`Tidak dapat menemukan catatan:` **{}**".format(notename))
    else:
        return await clr.edit(
            "`Catatan berhasil dihapus:` **{}**".format(notename))
Пример #14
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    if environ.get("isSuspended") == "True":
        return
    try:
        from userbot.modules.sql_helper.notes_sql import rm_note
    except AttributeError:
        await clr.edit("`Running on Non-SQL mode!`")
        return
    notename = clr.pattern_match.group(1)
    if rm_note(clr.chat_id, notename) is False:
        return await clr.edit("`Couldn't find note:` **{}**".format(notename))
    else:
        return await clr.edit(
            "`Successfully deleted note:` **{}**".format(notename))
Пример #15
0
async def remove_notes(clr):
    """ For .clear command, clear note with the given name."""
    if not clr.text[0].isalpha() and clr.text[0] not in ("/", "#", "@", "!"):
        try:
            from userbot.modules.sql_helper.notes_sql import rm_note
        except AttributeError:
            await clr.edit("`Running on Non-SQL mode!`")
            return
        notename = clr.pattern_match.group(1)
        if rm_note(clr.chat_id, notename) is False:
            return await clr.edit(
                "`Couldn't find note:` **{}**".format(notename))
        else:
            return await clr.edit(
                "`Successfully deleted note:` **{}**".format(notename))