适用于 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_colormap
- 类型:
str
- 默认:
viridis
- 说明: 生成图片的字体 色彩映射表
wordcloud_font_path
- 类型:
str
- 默认: 自带的字体(思源黑体)
- 说明: 生成图片的字体文件位置
wordcloud_stopwords_path
- 类型:
str
- 默认:
None
- 说明: 结巴分词的 停用词表 位置
wordcloud_userdict_path
- 类型:
str
- 默认:
None
- 说明: 结巴分词的 自定义词典 位置
wordcloud_timezone
- 类型:
str
- 默认:
None
- 说明: 用户自定义的 时区,留空则使用系统时区
wordcloud_default_schedule_time
- 类型:
str
- 默认:
22:00
- 说明: 默认定时发送时间,当开启词云每日定时发送时没有提供具体时间,将会在这个时间发送每日词云
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.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f48ba08ecf61112e059b1896fba47a2c9dc4fe994014535fd2f8d6b41db94d9 |
|
MD5 | d355ca8c14d98d6fedcf1bc6db5bbcba |
|
BLAKE2b-256 | 2575a49d7c1d393e70c141439d7bed1d7f517f9d954c9e3ba2f8169684483f91 |
Close
Hashes for nonebot_plugin_wordcloud-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60696e8dce1acb7717fa5807d80c3b8bab80e4582c73fe86e6e0602b5c51d1cf |
|
MD5 | 4a8eb90c63efac9be83b8c3c434eb19a |
|
BLAKE2b-256 | 2da04116ed1ca2fe9e83b6cf6ba82217f87d9bf10d254a4550ef1ec5ac249a4b |