Files
vk_lp/routes/ping.py
T
chydo fae7c43a3e Squashed commit of the following:
commit 470172e43f
Author: dize_dev <destersamp@gmail.com>
Date:   Wed Nov 1 18:09:56 2023 +0600

    Обновление v0.5.3

commit 7c74c7364d
Merge: 9c691d8 8bf604b
Author: dize_dev <destersamp@gmail.com>
Date:   Tue Oct 31 23:36:23 2023 +0600

    Merge remote-tracking branch 'github/master' into dize

    # Conflicts:
    #	config.py
    #	routes/__init__.py
    #	routes/delete_msg.py
    #	routes/info_bot.py
    #	routes/rewards.py

commit 9c691d8bf0
Author: dize_dev <destersamp@gmail.com>
Date:   Tue Oct 31 22:11:13 2023 +0600

    Обновление v0.5.2

commit 9a0f019eeb
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 23:58:24 2023 +0600

    Обновление v0.5.1
    Edit code

commit a4d1a3b690
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 23:53:40 2023 +0600

    Обновление v0.5
    Добавлена команда Пинг,
    Обнавлена команда Бот,
    Исправлены ошибки.

commit 2880f2889d
Merge: 20d1b08 5ed0d2f
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 21:54:06 2023 +0600

    Merge remote-tracking branch 'github/dize' into dize

commit 20d1b08344
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 21:52:46 2023 +0600

    fixed bug

commit 31e7bfce6f
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 21:51:11 2023 +0600

    fixed bug

commit 972b8e94d7
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 21:50:47 2023 +0600

    fixed bug

commit 5ed0d2f53d
Author: /dize <87265715+dizedev@users.noreply.github.com>
Date:   Mon Oct 30 19:03:23 2023 +0600

    Update config.py

commit 13238d5139
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:40:06 2023 +0600

    edit

commit 4c99f4042a
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:38:30 2023 +0600

    Обновление: v0.4

commit 0368bc75eb
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:37:31 2023 +0600

    Обновление: v0.3

commit 4091e409b5
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:35:36 2023 +0600

    Обновление: v0.3

commit 5beb9d01bc
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:28:18 2023 +0600

    Обновление: v0.3

commit 11c2e8c16e
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:26:34 2023 +0600

    Обновление: v0.3

commit 4c62f4a920
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:25:17 2023 +0600

    Обновление: v0.3

commit 7cf41c6bc3
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:18:55 2023 +0600

    Обновление: v0.1

commit 6019f6a287
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:16:29 2023 +0600

    Обновление: v0.2

commit f96505a675
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 18:05:42 2023 +0600

    Обновление: v0.2

commit bf61685d8e
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 17:53:33 2023 +0600

    Обновление: v0.2

commit b6082e3778
Author: dize_dev <destersamp@gmail.com>
Date:   Mon Oct 30 17:50:32 2023 +0600

    Обновление: v0.2
2023-11-01 23:16:19 +07:00

23 lines
577 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from custom_rules.permission import Permission
from vkbottle.user import Message
from config import bl, edit_message, prefix_bot
import time
async def get_ping(message: Message, answer: str) -> str:
delta = round(time.time() - message.date, 2)
if delta < 0:
delta = "666"
return f"{answer} Модуль Impulse LP\n" \
f"Ответ через {delta} с"
@bl.message(Permission(), text=[prefix_bot + " пинг"])
async def ping_(message: Message):
await edit_message(
message,
await get_ping(message, "ПОНГ")
)