Skip to main content

All Contributors

  • @Author : huanxin996
  • @Date : 2024-4-17
  • @LastEditors : huanxin996
  • @LastEditTime : 2024-11-28
  • @Description : None
  • @GitHub : https://github.com/huanxin996 -->

nonebot

nonebot_plugin_hx-yinying

✨ Hx vs YinYing(在线与银影进行对话的插件) ✨

license pypi python

安装

pip安装

pip install nonebot-plugin-hx-yinying

nb plugin安装

nb plugin install nonebot-plugin-hx-yinying

使用方式

通用:

  • @Bot 或者回复即可

OneBot:

  • @Bot
  • 回复Bot
指令集

/hx

  • 别名:chat
  • 主要对话命令

/刷新对话

  • 别名:clear
  • 主动刷新对话

/导出对话

  • 别名:getchat
  • 导出对话记录,没有对话记录会出错。

/设置全局配置

  • 别名:设置配置全局,globalset
  • 设置bot的全局配置

/导出全局配置

  • 别名:getset_global
  • 导出bot的全局配置
  • 该命令包含在"设置全局配置"里

/模型列表

  • 别名:modellist,chat模型列表
  • 发送bot可用模型

/切换模型 [模型id]

  • 别名:qhmodel,切换chat模型,模型切换
  • 切换bot当前使用的模型
  • 私聊群聊动态响应,如果在群内输入则切换群内加载的模型,私聊输入则切换私聊的。

/easycyber

  • 别名:easycyber设置,hxworld
  • 模型easycyberfurry主要配置
  • 内有多个指令

/控制台操作

  • 别名:管理控制台,setstart
  • 模型easycyberfurry的角色投稿管理,即将更新cyber的角色投稿管理
  • 内有多个指令

/确认版本

  • 别名:旅行伙伴确认,版本确认
  • 确认bot当前使用的版本和当前加载的模型。区分群聊和私聊动态响应

/sd [名称] [设定]

  • 别名:旅行伙伴加入,设定加入
  • [名称]可为空,即发送 旅行伙伴加入 [设定]
  • [设定]不可为空,必填
  • 载入用户的设定信息和自定义昵称

配置项

配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可。

配置项列表

yinying_appid

  • 类型:str
  • 默认值:None
  • 说明:你的appid
  • 重要:必填

yinying_token

  • 类型:str
  • 默认值:None
  • 说明:这里写你找秩乱获取到的api_key
  • 重要:必填

hx_path

  • 类型:str
  • 默认值:None
  • 说明:这里是插件本地配置的存储目录
  • 重要:非必填

SUPERUSERS

  • 类型:list
  • 默认值:None
  • 说明:这里是超级管理员(插件)
  • 重要:必填(你需要这个来管理该插件)

image_check_appid

  • 类型:str
  • 默认值:None
  • 说明:这里是阿里云图像检查的appid
  • 重要:非必填

image_check_token

  • 类型:str
  • 默认值:None
  • 说明:这里是阿里云图像检查的token
  • 重要:非必填

smms_token

  • 类型:str
  • 默认值:None
  • 说明:这里是smms的token(图床)
  • 重要:非必填(可在填写smms_username和smms_password)后通过bot窗口获取。

smms_username

  • 类型:str
  • 默认值:None
  • 说明:这里是smms的账号id(图床)
  • 重要:非必填必填(若smm_token为空,则需要填写账号密码)

smms_password

  • 类型:str
  • 默认值:None
  • 说明:这里是smms的密码(图床)
  • 重要:非必填(若smm_token为空,则需要填写账号密码)

hx_chatcommand

  • 类型:list
  • 默认值:["hx","chat"]
  • 说明:这里是聊天自定义命令头
  • 重要:非必填

配置文件示例(默认模板)

yinying_appid=你的appid
yinying_token=你的token(不带bearer)
hx_path=C:\Users\user\Desktop
SUPERUSERS=["114514"]
hx_chatcommand = ["hx","chat"]
image_check_appid=你的appid
image_check_token=你的token
smms_token=你获取到的token
smms_username=114514
smms_password=114514

本地各类config详解

config_global.json

在写了在写了


config_group.json

在写了在写了


config_user.json

在写了在写了


Contributors ✨

Metadata

Release files for nonebot-plugin-hx-yinying 1.4.11

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-hx-yinying 1.4.11
File Size Uploaded Provenance Actions
nonebot_plugin_hx_yinying-1.4.11.tar.gz 32.9 kB Without provenance Details for nonebot_plugin_hx_yinying-1.4.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-hx-yinying 1.4.11
File Interpreter ABI Platform Actions
nonebot_plugin_hx_yinying-1.4.11-py3-none-any.whl Python 3 none any Details for nonebot_plugin_hx_yinying-1.4.11-py3-none-any.whl

Total release size: 64.8 kB

Release files / nonebot_plugin_hx_yinying-1.4.11.tar.gz

Download URL nonebot_plugin_hx_yinying-1.4.11.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
298f1f7add7b782c36adecde85078694875112078090b217cf0656adf8690aa3
BLAKE2b-256 checksum
How to use checksums
888859f7c3cae676c5ba19089b6069b13a7eb533379e66c01d1558bc403efb8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.7

Release files / nonebot_plugin_hx_yinying-1.4.11-py3-none-any.whl

Download URL nonebot_plugin_hx_yinying-1.4.11-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e17a34211d7598040005e8261ad3f9a6799d694209a5faa871bd3cff0a37445b
BLAKE2b-256 checksum
How to use checksums
d2d77e62e614c781bf49ff43ceb27c46fdfe3b271b387069d695ffce8adb7f67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.7

Security for nonebot-plugin-hx-yinying 1.4.11

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

1.4.11 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