Skip to main content

nonebot-plugin-caiyunai

适用于 Nonebot2 的彩云小梦AI续写插件

安装

  • 使用 nb-cli
nb plugin install nonebot_plugin_caiyunai
  • 使用 pip
pip install nonebot_plugin_caiyunai

本插件使用了 go-cqhttp 的 send_group_forward_msg 和 send_private_forward_msg 接口 来发送合并转发消息,

发送私聊合并转发消息需要使用 v1.0.0-rc2 版本以上的 go-cqhttp

配置

需要在 .env.xxx 文件中添加彩云小梦apikey:

caiyunai_apikey=xxx

apikey获取:

前往 http://if.caiyunai.com/dream 注册彩云小梦用户;

注册完成后,F12打开开发者工具;

在控制台中输入 alert(localStorage.cy_dream_user) ,弹出窗口中的 uid 即为 apikey;

或者进行一次续写,在 Network 中查看 novel_ai 请求,Payload 中的 uid 项即为 apikey。

使用

触发方式:

以下命令需要加命令前缀 (默认为/),可自行设置为空

@机器人 续写/彩云小梦 xxx

示例:

特别感谢

Metadata

Release files for nonebot-plugin-caiyunai 0.2.5

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-caiyunai 0.2.5
File Size Uploaded
nonebot_plugin_caiyunai-0.2.5.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-caiyunai 0.2.5
File Interpreter ABI Platform
nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / nonebot_plugin_caiyunai-0.2.5.tar.gz

Download URL nonebot_plugin_caiyunai-0.2.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
67159772dbdeecacb5a9f7059984ca2ac2b230f59640a663619a18e06ca7d317
BLAKE2b-256 checksum
How to use checksums
2ab95ea2bf6bff7a404a1fdbc1534294bc90d75df358120959c552c6ef0fa48e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2

Release files / nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl

Download URL nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e85c83a4fbb7169387f235ade08a4da6792fab8348b04ce8308d0d248cd3bac
BLAKE2b-256 checksum
How to use checksums
456598ea0daa508bf7a097208447502c6a962f4abc30e20a06f579243d201741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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