update
This commit is contained in:
parent
45e25245fb
commit
2eaf1ad19d
@ -1,12 +1,12 @@
|
||||
from pyrogram import filters, Client
|
||||
from pyrogram.types import Message
|
||||
from ci import app, admin_id
|
||||
from ci import app
|
||||
from defs.refresh import refresh_player
|
||||
|
||||
|
||||
@app.on_message(filters.command(["refresh_admin"]) & filters.private)
|
||||
@app.on_message(filters.command("refresh_admin") & filters.private)
|
||||
async def refresh_admin_command(_: Client, message: Message):
|
||||
if message.from_user.id != admin_id:
|
||||
if message.from_user.id != 347437156:
|
||||
return
|
||||
if len(message.command) == 1:
|
||||
return await message.reply("请输入 uid", quote=True)
|
||||
|
@ -1,7 +1,6 @@
|
||||
from pyrogram import filters, Client
|
||||
from pyrogram.types import Message
|
||||
from defs.bind import check_bind, get_bind_uid, set_bind, remove_bind
|
||||
from defs.refresh import refresh_player
|
||||
from defs.player import Player
|
||||
from ci import app, me
|
||||
|
||||
@ -24,4 +23,3 @@ async def bind_command(_: Client, message: Message):
|
||||
uid = message.command[1]
|
||||
set_bind(message.from_user.id, uid)
|
||||
msg = await message.reply(f"绑定成功,您绑定的游戏 uid 为:{uid},请使用 /refresh 刷新数据。", quote=True)
|
||||
await msg.edit(text)
|
||||
|
@ -9,12 +9,9 @@ des = """
|
||||
|
||||
我基于公共 API 提供的数据来合成图片,支持以下数据:
|
||||
`
|
||||
- 等级
|
||||
- 天赋
|
||||
- 武器
|
||||
- 面板数据
|
||||
- 圣遗物
|
||||
- 等级、天赋、武器、面板数据、圣遗物
|
||||
`
|
||||
角色总分:`圣遗物总分 + 角色等级 + (a+e+q)*4 + 武器等级 * ( 1+(武器精炼数 -1) * 0.25)`
|
||||
角色数据基于 [enka](https://enka.shinshin.moe)
|
||||
图片模板基于 [GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID)
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user