Support 资源 command

This commit is contained in:
xtaodada 2022-05-01 11:00:42 +08:00
parent 077661b45e
commit 940a8782c2
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 37 additions and 14 deletions

View File

@ -8,7 +8,8 @@ help_msg = """
👩🏻💼 » /find <名称> - 查找物品/角色对应的 id <只显示前五个匹配项>
<code>/find 枫原万叶</code>
<code>/find 枫原万叶的命座</code>
👩🏻💼 » /jc - 中文教程地址
👩🏻💼 » 教程 - 中文教程地址
👩🏻💼 » 资源 - 资源地址
👩🏻💼 » 我想要角色 - 生成赋予角色命令
"""

View File

@ -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, "以下是教程链接:",
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("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")],
]))

21
plugins/zy.py Normal file
View File

@ -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")],
]))