Skip to main content

一个基于nonebot2框架的splatoon3游戏nso数据查询插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-splatoon3-nso

✨ splatoon3 nso查询插件 ✨

license PyPI - Downloads pypi python
onebot onebot telegram kook QQ

📖 介绍

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

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

💿 安装

前置环境

  • python3.10或以上版本
  • 本地或远程的redis数据库

插件安装

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

⚙️ 配置

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

配置项 必填 值类型 默认值 说明
splatoon3_proxy_address str "" 代理地址,格式为 127.0.0.1:20171(该配置项与日程查询插件公用)
splatoon3_reply_mode bool False 指定回复模式,开启后将通过触发词的消息进行回复,默认为False(该配置项与日程查询插件公用)
splatoon3_proxy_list_mode bool True 局部域名代理模式,具体依据自己服务器对各个域名的访问情况进行设置,默认True,False情况为全部域名请求走代理
splatoon3_proxy_list list 见源码 局部域名代理列表
splatoon3_schedule_plugin_priority_mode bool False 日程插件的帮助菜单优先模式(会影响帮助菜单由哪个插件提供,该配置项与日程查询插件公用)
splatoon3_kk_guild_id str "" Q群在进行登录时,将用户引导至kook平台完成登录的服务器id
splatoon3_bot_disconnect_notify bool True bot上线,掉线时通知到频道
splatoon3_qq_md_mode bool False 部分消息使用qq平台md卡片,开启了也没用,md模版需要在qqbot端进行审核,模板id目前在代码里是写死的
splatoon3_unknown_command_fallback_reply bool True 没有匹配命令时是否兜底回复
splatoon3_notify_tg_bot_id str "" 日志消息将由该bot发送至tg频道,不填就不会发送
splatoon3_tg_channel_msg_chat_id str "" msg消息的tg通知频道
splatoon3_tg_channel_job_chat_id str "" job消息的tg通知频道
splatoon3_notify_kk_bot_id str "" 日志消息将由该bot发送至kook频道,不填就不会发送
splatoon3_kk_channel_msg_chat_id str "" msg消息的kook通知频道
splatoon3_kk_channel_job_chat_id str "" job消息的kook通知频道
splatoon3_redis_ip str "" redis用于缓存用户token数据,redis ip
splatoon3_redis_port str "" redis 端口
splatoon3_redis_psw str "" redis 密码
示例配置
# splatoon3-nso示例配置
splatoon3_proxy_address = "" #代理地址
splatoon3_reply_mode = False #指定回复模式
splatoon3_proxy_list_mode = True #局部域名代理模式,具体依据自己服务器对各个域名的访问情况进行设置,默认True,False情况为全部域名请求走代理
splatoon3_proxy_list = ["accounts.nintendo.com", "api.accounts.nintendo.com", "api-lp1.znc.srv.nintendo.net"] #局部域名代理列表
splatoon3_schedule_plugin_priority_mode = False #日程插件的帮助菜单优先模式(会影响帮助菜单由哪个插件提供,该配置项与日程查询插件公用)
splatoon3_kk_guild_id = "" #Q群在进行登录时,将用户引导至kook平台完成登录的服务器id
splatoon3_bot_disconnect_notify = True #bot上线,掉线时通知到频道
splatoon3_qq_md_mode = False #部分消息使用qq平台md卡片,开启了也没用,md模版需要在qqbot端进行审核,模板id目前在代码里是写死的
splatoon3_unknown_command_fallback_reply = True  # 没有匹配命令时是否兜底回复
# 日志消息将由该bot发送至tg频道
splatoon3_notify_tg_bot_id = ""
splatoon3_tg_channel_msg_chat_id = ""
splatoon3_tg_channel_job_chat_id = ""
# 日志消息将由该bot发送至kook频道
splatoon3_notify_kk_bot_id = ""
splatoon3_kk_channel_msg_chat_id = ""
splatoon3_kk_channel_job_chat_id = ""
# redis数据库地址  用于缓存用户数据
# redis_ip
splatoon3_redis_ip: str = ""
# redis_port
splatoon3_redis_port: str|int = ""
# redis_psw
splatoon3_redis_psw: str = ""

🎉 使用

指令表

nso帮助菜单

help.png

第三方api的使用

nso查询过程中使用到了第三方的自动令牌生成接口

  • 自动生成令牌需要向非 Nintendo 服务器发出安全请求,请求中包含最少的非识别信息。
  • 我们力求对此 100% 透明,并提供有关安全和隐私的深入信息。

隐私声明

  • 插件不会向第三方自动令牌接口,如imink APInxapi-znca-api发送任何身份信息。
  • 用户名和密码与 API 的作用相距甚远,除了您之外,任何人都无法读取,返回的值不包含有关您帐户的任何有意义的信息。
  • 无法使用发送或存储的数据来识别哪个帐户/用户执行了请求,无法查看有关用户的识别信息,也无法访问帐户。
  • 有关更多信息,请参阅imink API 隐私政策文档,nxapi-znca-api 文档.

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

鸣谢

⏳ Star 趋势

Stargazers over time

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_splatoon3_nso-2.0.0.tar.gz (804.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_splatoon3_nso-2.0.0-py3-none-any.whl (840.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_splatoon3_nso-2.0.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_splatoon3_nso-2.0.0.tar.gz
Algorithm Hash digest
SHA256 83b026246d62293d535d49c6b8b80a96832246cc871df05f11284d286827534e
MD5 e17e1d2bbf9ba3ed6dd333f5bc6d9604
BLAKE2b-256 6995751c44cb106eed5bd210020896e06da87661c5366b714b1354b37e90c675

See more details on using hashes here.

File details

Details for the file nonebot_plugin_splatoon3_nso-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_splatoon3_nso-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 713055275e20d1f9daa204474a481afd4b2b7f99f762cf12c1443fdfef9dbed9
MD5 0baf517443d3a1be28f2b83b847e697f
BLAKE2b-256 5ded03f2ea2dcd12980e47055f58caa5ecc52910ad8948a2eacb43ec50e7a35f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page