Lawnmower/plugins/help.py
2022-04-24 00:18:35 +08:00

25 lines
778 B
Python

from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
from ci import me
help_msg = """
<b>Grasscutters</b>
👩🏻‍💼 » /find <名称> - 查找物品/角色对应的 id <只显示前五个匹配项>
<code>/find 枫原万叶</code>
<code>/find 枫原万叶的命座</code>
"""
@Client.on_message(filters.incoming &
filters.command(["help", f"help@{me.username}"]))
async def help_command(_: Client, message: Message):
await message.reply(
help_msg,
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("GitHub", url="https://github.com/Grasscutters/Grasscutter")]]
),
disable_web_page_preview=True,
quote=True,
)