2022-06-04 04:32:48 +00:00
|
|
|
|
from pyrogram import filters, Client
|
|
|
|
|
from pyrogram.types import Message
|
|
|
|
|
from ci import app, me
|
|
|
|
|
|
|
|
|
|
des = """
|
|
|
|
|
你好!{} 我是 [{}]({})
|
|
|
|
|
|
|
|
|
|
> 请先使用 `/bind [uid]` 绑定游戏 uid 进行更新数据,然后使用 `/search [uid(可选)]` 获取角色卡片。
|
|
|
|
|
|
|
|
|
|
我基于公共 API 提供的数据来合成图片,支持以下数据:
|
|
|
|
|
`
|
2022-06-04 05:53:53 +00:00
|
|
|
|
- 等级、天赋、武器、面板数据、圣遗物
|
2022-06-04 04:32:48 +00:00
|
|
|
|
`
|
2022-06-04 05:53:53 +00:00
|
|
|
|
角色总分:`圣遗物总分 + 角色等级 + (a+e+q)*4 + 武器等级 * ( 1+(武器精炼数 -1) * 0.25)`
|
2022-06-04 04:32:48 +00:00
|
|
|
|
角色数据基于 [enka](https://enka.shinshin.moe)
|
|
|
|
|
图片模板基于 [GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID)
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.on_message(filters.command(["start", f"start@{me['result']['username']}"]) & filters.private)
|
|
|
|
|
async def start_command(_: Client, message: Message):
|
|
|
|
|
await message.reply(des.format(message.from_user.mention(),
|
|
|
|
|
me["result"]["first_name"],
|
|
|
|
|
f"https://t.me/{me['result']['username']}"),
|
|
|
|
|
disable_web_page_preview=True,
|
|
|
|
|
quote=True)
|