Code Monkey home page Code Monkey logo

splatoon3-nso's Introduction

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或以上版本
  • 系统安装有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_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-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_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目前在代码里是写死的
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 = ""

🎉 使用

指令表

nso帮助菜单

help.png

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

鸣谢

⏳ Star 趋势

Stargazers over time

splatoon3-nso's People

Contributors

cypas avatar paul-sama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

splatoon3-nso's Issues

在Win系统下部署的bot无法进行stat.ink同步

02-20 12:47:47 [INFO] nonebot_plugin_splatoon3_nso | update_s3si_ts start
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | cli: Already up to date.
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | update_s3si_ts end, 1s
02-20 12:47:49 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_splatoon3_nso.handle.login, lineno=297) running complete
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | exported_to_stat_ink: 1
sed:-e 表达式 #1,字符 1:未知的命令:“'”
sed:-e 表达式 #1,字符 1:未知的命令:“'”
sed:-e 表达式 #1,字符 1:未知的命令:“'”
sed:-e 表达式 #1,字符 1:未知的命令:“'”
sed:-e 表达式 #1,字符 1:未知的命令:“'”
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | D:\deno\deno.exe run -Ar ./s3si.ts -n -p C:\Users\Hana-NAS\Desktop\Splatoon.venv\lib\site-packages\nonebot_plugin_splatoon3_nso/resource/s3sits_git/user_configs/config_1.json
error: Import 'https://deno.land/x/[email protected]/mod.ts' failed: error sending request for url (https://deno.land/x/[email protected]/mod.ts): error trying to connect: tcp open error: 无法加载或初始化请求的服务提供程序。 (os error 10106)
at file:///C:/Users/Hana-NAS/Desktop/Splatoon/.venv/lib/site-packages/nonebot_plugin_splatoon3_nso/resource/s3sits_git/deps.ts:5:8
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | 1 cli:
02-20 12:47:49 [INFO] nonebot_plugin_splatoon3_nso | 1 result: 0, 0,

sed安装的是sed-4.2.1-setup.exe,并且在系统环境变量下添加了C:\Program Files (x86)\GnuWin32\bin
现在不知道原因在哪。
所有依赖要求的版本都是准确的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.