コード例 #1
0
ファイル: antiflood.py プロジェクト: BristolMyers/ExelonTest
async def _(event):
    input_str = event.pattern_match.group(1)
    event = await edit_or_reply(event, "flood ayarlarını güncelleme!")
    try:
        sql.set_flood(event.chat_id, input_str)
        sql.__load_flood_settings()
        await event.edit("Antiflood, mevcut sohbette {} olarak güncellendi".format(input_str))
    except Exception as e:  # pylint:disable=C0103,W0703
        await event.edit(str(e))
コード例 #2
0
async def _(event):
    input_str = event.pattern_match.group(1)
    event = await edit_or_reply(event, "updating flood settings!")
    try:
        sql.set_flood(event.chat_id, input_str)
        sql.__load_flood_settings()
        await event.edit(
            "Antiflood updated to {} in the current chat".format(input_str))
    except Exception as e:  # pylint:disable=C0103,W0703
        await event.edit(str(e))
コード例 #3
0
ファイル: antiflood.py プロジェクト: sekret666/PhantomUserbot
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    try:
        sql.set_flood(event.chat_id, input_str)
        CHAT_FLOOD = sql.__load_flood_settings()
        await event.edit("Antiflood updated to {} in the current chat".format(input_str))
    except Exception as e:  # pylint:disable=C0103,W0703
        await event.edit(str(e))
コード例 #4
0
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    event = await edit_or_reply(event, "updating flood settings!")
    try:
        sql.set_flood(event.chat_id, input_str)
        sql.__load_flood_settings()
        await event.edit(
            "Antiflood updated untuk {} didalam ruang chat init".format(
                input_str))
    except Exception as e:  # pylint:disable=C0103,W0703
        await event.edit(str(e))