适用于 NoneBot2 的词云插件
Project description
NoneBot Plugin WordCloud
✨ NoneBot 词云插件 ✨
使用方式
插件依赖 nonebot-plugin-chatrecorder 提供消息存储。
待插件启动完成后,发送 /今日词云
、/昨日词云
或 /历史词云
即可获取词云。
配置项
配置方式:直接在 NoneBot
全局配置文件中添加以下配置项即可。
wordcloud_width
- 类型:
int
- 默认:
1920
- 说明: 生成图片的宽度
wordcloud_height
- 类型:
int
- 默认:
1200
- 说明: 生成图片的高度
wordcloud_background_color
- 类型:
str
- 默认:
black
- 说明: 生成图片的背景颜色
wordcloud_font_path
- 类型:
str
- 默认: 自带的字体(思源黑体)
- 说明: 生成图片的字体文件位置
wordcloud_stopwords_path
- 类型:
str
- 默认: 自带的停用词表
- 说明: 生成图片的停用词表位置
wordcloud_userdict_path
- 类型:
str
- 默认:
None
- 说明: 结巴分词的 自定义词典 位置
wordcloud_timezone
- 类型:
str
- 默认:
None
- 说明: 用户自定义的 时区,留空则使用系统时区
迁移数据
从 0.0.4
及以下版本升级至 0.0.5
之后,可以通过发送 /迁移词云
迁移数据。
注意:这个命令将会在 0.1.0
版本删除。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-wordcloud-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561d82d1e4af88c10190f114832f56b64f79b4e2c6e88340130599b5ccba2613 |
|
MD5 | a4009443337b5bdcbe4217db36685930 |
|
BLAKE2b-256 | af6280d0c53d894b6e2c3bad5bb0942f5a3abaa1988eb458fb8c8a473a6e8e2e |
Close
Hashes for nonebot_plugin_wordcloud-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280bd99d072b174f0c17b38e3061c05580411ebb5dd964cb2a461cc8bb2bf9e8 |
|
MD5 | 0347efb4ee95c4165cf912764f8901cc |
|
BLAKE2b-256 | c81080a082f20ab9b8b5a5f0c99e95fc4651878d61a64e4c9eb50e6ee84715ad |