Files
vk_lp/routes/profile.py
T
2023-11-02 00:34:55 +07:00

21 lines
732 B
Python
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import time
from vkbottle.user import Message, UserLabeler
from config import edit_message, prefix_bot, prefix_dd
from custom_rules.permission import Permission
from utils import rewards
bl = UserLabeler()
@bl.message(Permission(), text=[prefix_bot + " профиль"])
async def get_profile_cmd(message: Message):
delta = round(time.time() - message.date, 2)
if delta < 0:
delta = "666"
await edit_message(message,
f"Твой профиль:\n\n Название бота: Impulse LP\n Твоя версия: None\n Твои достижения: {rewards[1]}\n Твой префикс: {prefix_bot}\n Твой префикс дд: {prefix_dd}\n Твой пинг: {delta}")