Skip to main content

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

Project description

nonebot-plugin-caiyunai

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

安装

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

本插件使用了 go-cqhttpsend_group_forward_msgsend_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

示例:

特别感谢

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_caiyunai-0.2.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_caiyunai-0.2.5.tar.gz.

File metadata

  • Download URL: nonebot_plugin_caiyunai-0.2.5.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for nonebot_plugin_caiyunai-0.2.5.tar.gz
Algorithm Hash digest
SHA256 67159772dbdeecacb5a9f7059984ca2ac2b230f59640a663619a18e06ca7d317
MD5 660a29cca0e5140b2cdad333ad699a41
BLAKE2b-256 2ab95ea2bf6bff7a404a1fdbc1534294bc90d75df358120959c552c6ef0fa48e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e85c83a4fbb7169387f235ade08a4da6792fab8348b04ce8308d0d248cd3bac
MD5 3ae475bfa9485c9b8e6d770ff11ba928
BLAKE2b-256 456598ea0daa508bf7a097208447502c6a962f4abc30e20a06f579243d201741

See more details on using hashes here.

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