Skip to content

baiqwerdvd/nonebot-plugin-fhl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nonebot-plugin-fhl

适用于 Nonebot2 的 飞花令 插件

安装

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

配置项

以下配置项可在 .env.* 文件中设置,具体参考 NoneBot 配置方式

feihualing_api

  • 类型:str
  • 默认:http://106.54.63.95:8080
  • 说明:飞花令 API

使用

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

@机器人 + /梦笔生花

API 搭建

  • 安装 golang

  • Clone 源代码

git clone https://github.com/lianhong2758/fhlAPI
  • 编译

    下面两种均可,二选一

go build mian.go
make build
  • 数据文件

    飞花令需要的数据文件需要存放在data/下,提供两张获取方法:

    • 前往 huggingface 下载

    • 自己 build dataset,将 2b-dedup.txt 放在 data/ 下,第一次启动的时候会自动 build dataset

    此操作需要的内存大约在10G左右,请自行准备大内存 第一次build完成之后请重新启动程序释放内存

  • 启动

./main.go
  • .env.* 文件中设置 api 地址

特别感谢

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages