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```")
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```")
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))
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}**")
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))
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}**")
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']))
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']))
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))
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))
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))
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))
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))
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))
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))