Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-splatoon3-schedule

✨ splatoon3游戏日程查询插件 ✨

license PyPI - Downloads pypi python
onebot onebot telegram kook QQ discord

📖 介绍

  • 一个基于nonebot2框架的splatoon3游戏日程查询插件,支持onebot11,onebot12,telegram协议,kook协议,QQ官方bot协议,discord协议
  • 全部查询图片,全部采用pillow精心绘制,图片效果可查看下面的效果图
  • 建议配合我做的nso查询插件一起使用

也可以邀请我目前做好的小鱿鱿bot直接加入频道或群聊,kook频道bot,qq群聊bot

小鱿鱿官方kook频道:kook频道

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-splatoon3-schedule
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pdm
pdm add nonebot-plugin-splatoon3-schedule
poetry
poetry add nonebot-plugin-splatoon3-schedule

⚙️ 配置

以下配置项均为可选值,根据自己需要将配置项添加至nonebot目录的.env.prod文件

MCP 的 Host 校验由外部反向代理(如 Nginx)负责,插件仅按下方配置校验 Origin。

配置项 必填 值类型 默认值 说明
splatoon3_proxy_address 否 str "" 代理地址,格式为 127.0.0.1:20171
splatoon3_reply_mode 否 bool False 指定回复模式,开启后将通过触发词的消息进行回复,默认为False
splatoon3_permit_private 否 bool False 是否允许频道私聊触发,默认为False
splatoon3_permit_c2c 否 bool False 是否允许qq私聊(c2c)触发,默认为False
splatoon3_permit_channel 否 bool True 是否允许频道触发,默认为True
splatoon3_permit_group 否 bool True 是否允许群聊(如qq群,tg群)触发,默认为True
splatoon3_permit_unknown_src 否 bool False 是否允许未知来源触发,默认为False
splatoon3_sole_prefix 否 bool False 限制消息触发前缀为/
splatoon3_guild_owner_switch_push 否 bool False 频道服务器拥有者是否允许开关主动推送功能(为False时仅允许管理员开启关闭)
splatoon3_is_official_bot 否 bool False 是否是官方小鱿鱿bot(会影响输出的帮助图片内容)
splatoon3_schedule_plugin_priority_mode 否 bool False 日程插件的帮助菜单优先模式(会影响帮助菜单由哪个插件提供,该配置项与nso查询插件公用)
splatoon3_mcp_allowed_origins 否 list[str] [] MCP 允许访问的 Origin;客户端发送 Origin 时请填写完整来源
示例配置
# splatoon3-schedule示例配置
splatoon3_proxy_address = "" #代理地址
splatoon3_reply_mode = False #指定回复模式
splatoon3_permit_private = False #是否允许频道私聊触发
splatoon3_permit_c2c = False #是否允许qq私聊(c2c)触发
splatoon3_permit_channel = True #是否允许频道触发
splatoon3_permit_group = True # 是否允许群聊(如qq群,tg群)触发
splatoon3_permit_unkown_src = False #是否允许未知来源触发
splatoon3_sole_prefix = False # 限制消息触发前缀为/
splatoon3_guild_owner_switch_push = False # 频道服务器拥有者是否允许开关主动推送功能(为False时仅允许管理员开启关闭)
splatoon3_is_official_bot = False	# 是否是小鱿鱿bot(会影响输出的帮助图片内容)
splatoon3_schedule_plugin_priority_mode = False #日程插件的帮助菜单优先模式(会影响帮助菜单由哪个插件提供,该配置项与nso查询插件公用)
splatoon3_mcp_allowed_origins = ["https://mcp.example.com"]

注册 MCP 端点

在宿主应用中挂载 MCP 服务:

import nonebot

nonebot.init()
nonebot.load_from_toml("pyproject.toml", encoding="utf-8")
nonebot.load_plugins("plugins")

asgi = nonebot.get_asgi()
from plugins.nonebot_plugin_splatoon3_schedule.interfaces.mcp import (
    MCP_PATH,
    install_mcp_lifespan,
    mcp_http_app,
)

# 注册 MCP 会话管理器生命周期(必须在 nonebot.run() 之前调用)
install_mcp_lifespan(asgi)

# MCP_PATH 当前为 /schedule,直接挂载到宿主 ASGI 后,端点为 /api/schedule/mcp
asgi.mount("/api" + MCP_PATH, mcp_http_app)

if __name__ == "__main__":
    nonebot.run()

注册完成后,MCP 客户端使用以下地址连接:

https://你的域名/api/schedule/mcp

如果前面使用 Nginx 等反向代理,建议仅对外暴露代理地址,并由代理负责 Host 转发与 HTTPS;splatoon3_mcp_allowed_origins 用于限制客户端携带的 Origin。

🎉 使用

指令表

指令帮助手册

help.png

效果图

对战查询

stages.png

打工查询

coop.png

活动

events.png

祭典

festival.png

随机武器

random_weapon.png

✨喜欢的话就点个star✨吧,球球了QAQ

鸣谢

⏳ Star 趋势

Stargazers over time

Metadata

Release files for nonebot-plugin-splatoon3-schedule 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-splatoon3-schedule 2.3.0
File Size Uploaded Provenance Actions
nonebot_plugin_splatoon3_schedule-2.3.0.tar.gz 98.2 MB Without provenance Details for nonebot_plugin_splatoon3_schedule-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-splatoon3-schedule 2.3.0
File Interpreter ABI Platform Actions
nonebot_plugin_splatoon3_schedule-2.3.0-py3-none-any.whl Python 3 none any Details for nonebot_plugin_splatoon3_schedule-2.3.0-py3-none-any.whl

Total release size: 196.4 MB

Release files / nonebot_plugin_splatoon3_schedule-2.3.0.tar.gz

Download URL nonebot_plugin_splatoon3_schedule-2.3.0.tar.gz
Size 98.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f3caa5aade9cb0a4cbdb7ad1ac4be1bb7b75a61641d1844695c9039ae8b70c26
BLAKE2b-256 checksum
How to use checksums
db0f7f4e8df14427161adc83e1c447f58d3d094cd1c3ce12f43f8189999bb610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / nonebot_plugin_splatoon3_schedule-2.3.0-py3-none-any.whl

Download URL nonebot_plugin_splatoon3_schedule-2.3.0-py3-none-any.whl
Size 98.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9d7bc1f8640967b7613a288041292a10d73223ea3ddeaad25d202ab01416b654
BLAKE2b-256 checksum
How to use checksums
ffcd2bd7da09c9bf6dbd30e2f3adeebe0ac2cc7615442a5116c40e422943c54a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for nonebot-plugin-splatoon3-schedule 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page