Lawnmower/plugins/help.py
2022-05-01 11:00:42 +08:00

28 lines
928 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,
)