jieba 和 word-cloud,Jieba 服务和词云插件,能用就行

3 个赞

实现非常糙但
无标题

1 个赞

nodejs-file-downloader 忘加进依赖了,太晚了,明天再修,遇到问题可以手动 yarn add

1 个赞

啊? jieba ?

速速支持 Koishi Context 服务!!

2 个赞

速速 cordis.Service

1 个赞

用法不和 pupeteer 一样的

1 个赞

已经有了,如果你是指 ctx.jieba.cut 之类的话

2 个赞

怎么只能记录命令啊

1 个赞

啥呀,指令当然会记录,因为也是当做信息的,但只能记录指令是不是有点逆天了,你样本量太小了吧

1 个赞

确实是样本量太少了,在私群测试,因为只有指令是英文的所以没注意到。不是只记录指令,是只记录英文和数字

1 个赞

只记录英文?
你是不是jieba没开?(
jieba用来给中文分词的,我有过效果

1 个赞

jieba有开但没配置,另外问下装了jieba后居然更新和安装不了插件,是特别情况吗,看了npm的日志才发现,卸了恢复正常。部署在zerotermux debian上

Log files:
/root/.npm/_logs/2023-09-01T03_50_55_603Z-debug-0.log

npm resolution error report

While resolving: koishi-plugin-word-cloud@0.4.0
Found: koishi-plugin-jieba@0.3.4
node_modules/koishi-plugin-jieba
koishi-plugin-jieba@“0.3.4” from the root project
Could not resolve dependency:
peer koishi-plugin-jieba@“^0.2.0” from koishi-plugin-word-cloud@0.4.0
node_modules/koishi-plugin-word-cloud
koishi-plugin-word-cloud@“0.4.0” from the root project
Conflicting peer dependency: koishi-plugin-jieba@0.2.6
node_modules/koishi-plugin-jieba
peer koishi-plugin-jieba@“^0.2.0” from koishi-plugin-word-cloud@0.4.0
node_modules/koishi-plugin-word-cloud
koishi-plugin-word-cloud@“0.4.0” from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

2 个赞

啊,有这种事? 你是不是又把 jieba 的二进制目录设置到 node_modules 那里了

2 个赞

我是不是应该检测一下用户会不会自己把二进制目录设置到 node_modules 来自己造成不安全环境(,你的 error report 写着 Found: koishi-plugin-jieba@0.3.4
node_modules/koishi-plugin-jieba

如果你想知道为什么不能用了可以看看 GitHub 上的好玩文章:零占用的 Koishi - #2,来自 ilharp

2 个赞

那么二进制目录该怎么设置呢,能通过koishi进行设置吗

1 个赞

请问下,使用cloud命令输出来的图一片空白,使用–full参数后正常
查看log发现了这个报错

重载了几次canvas都这样
我尝试着去下载了报错中提到的字体lxgw-wenkai-lite-v1.300丢到了报错在提到的目录

使用cloud还是一片空白

请问有什么办法解决呀

3 个赞

Release v1.300 23/05/01 · lxgw/LxgwWenKai-Lite · GitHub 下载 tar.gz 文件丢到 font 目录下

2 个赞

哦哦,原来要下的是这个,正常了,感谢大佬

3 个赞

只是在新版本复活一下(指能在 4.17.0+ 用),没有任何新功能

4 个赞

用上了喵

2 个赞