Skip to main content

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

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-splatoon3-nso

✨ splatoon3 nso查询插件 ✨

license PyPI - Downloads pypi python
telegram kook QQ

📖 介绍

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

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

💿 安装

前置环境

  • python3.10或以上版本
  • 系统安装有2.30版本以上git
  • deno引擎,安装参考 https://www.denojs.cn/
  • 如需在win下使用,还需要安装win版sed,下载地址

插件安装

使用 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_deno_path str "" 需要先在系统下安装deno,参考https://www.denojs.cn/ 此处填写安装路径,具体到deno文件,如"/home/ubuntu/.deno/bin/deno"
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_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示例配置
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_deno_path = "" #需要先在系统下安装deno,参考https://www.denojs.cn/ 此处填写安装路径,具体到deno文件,如"/home/ubuntu/.deno/bin/deno"
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目前在代码里是写死的
# 日志消息将由该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 = ""

🎉 使用

指令表

nso帮助菜单

help.png

✨喜欢的话就点个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-0.1.8.tar.gz (593.3 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_splatoon3_nso-0.1.8-py3-none-any.whl (615.5 kB view hashes)

Uploaded Python 3

Supported by

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