diff --git a/plugins/help.py b/plugins/help.py index 4209043..4ecb01c 100644 --- a/plugins/help.py +++ b/plugins/help.py @@ -8,7 +8,8 @@ help_msg = """ 👩🏻‍💼 » /find <名称> - 查找物品/角色对应的 id <只显示前五个匹配项> /find 枫原万叶 /find 枫原万叶的命座 -👩🏻‍💼 » /jc - 中文教程地址 +👩🏻‍💼 » 教程 - 中文教程地址 +👩🏻‍💼 » 资源 - 资源地址 👩🏻‍💼 » 我想要角色 - 生成赋予角色命令 """ diff --git a/plugins/jc.py b/plugins/jc.py index e766bd8..dd5bede 100644 --- a/plugins/jc.py +++ b/plugins/jc.py @@ -1,19 +1,20 @@ from pyrogram import Client, filters from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton -from ci import me @Client.on_message(filters.incoming & - filters.command(["jc", f"jc@{me.username}"])) + filters.regex(r"^教程")) async def jc(client: Client, message: Message): - await client.send_message(message.chat.id, "以下是教程链接:", - reply_to_message_id=message.id if not message.reply_to_message else message.reply_to_message.id, - disable_web_page_preview=True, - reply_markup=InlineKeyboardMarkup( - [ - [InlineKeyboardButton("中文简易教程", url="https://telegra.ph/Grasscutter-CN-04-21"), - InlineKeyboardButton("memorz", url="https://memorz.top/archives/112")], - [InlineKeyboardButton("otoo", url="https://blog.otoo.top/Blog/Genshin2-6" - "-Grasscutters-Multiplayer/"), - InlineKeyboardButton("tomys", url="https://blog.tomys.top/2022-04/GenshinTJ/")], - ])) + await client.send_message( + message.chat.id, "以下是教程链接", + reply_to_message_id=message.id if not message.reply_to_message else message.reply_to_message.id, + disable_web_page_preview=True, + reply_markup=InlineKeyboardMarkup( + [ + [InlineKeyboardButton("中文简易教程", url="https://telegra.ph/Grasscutter-CN-04-21"), + InlineKeyboardButton("memorz", url="https://memorz.top/archives/112")], + [InlineKeyboardButton("otoo", url="https://blog.otoo.top/Blog/Genshin2-6-Grasscutters-Multiplayer"), + InlineKeyboardButton("tomys", url="https://blog.tomys.top/2022-04/GenshinTJ")], + [InlineKeyboardButton("chitang 安卓部署", + url="https://www.chitang.tech/posts/grasscutter-android")], + ])) diff --git a/plugins/zy.py b/plugins/zy.py new file mode 100644 index 0000000..8b24a53 --- /dev/null +++ b/plugins/zy.py @@ -0,0 +1,21 @@ +from pyrogram import Client, filters +from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton + + +@Client.on_message(filters.incoming & + filters.regex(r"^资源")) +async def zy(client: Client, message: Message): + await client.send_message( + message.chat.id, "以下是资源链接,请按需获取", + reply_to_message_id=message.id if not message.reply_to_message else message.reply_to_message.id, + disable_web_page_preview=True, + reply_markup=InlineKeyboardMarkup( + [ + [InlineKeyboardButton("Resources 文件夹资源", url="https://github.com/Koko-boya/Grasscutter_Resources")], + [InlineKeyboardButton("安卓免 root 畅玩", + url="https://github.com/FENGXIpersion/Grasscutters_Android/releases/tag/java")], + [InlineKeyboardButton("圣遗物带词条生成器(英文)", url="https://gc-tools.exzork.me/artifact")], + [InlineKeyboardButton("稳定版整合", url="https://t.me/Grasscutter_CN/4"), + InlineKeyboardButton("开发版整合", url="https://t.me/c/1753135747/8549"), + InlineKeyboardButton("PC启动器", url="https://t.me/Grasscutter_CN/11")], + ]))