适用于 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
- 说明: 用户自定义的 时区,留空则使用系统时区
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56fefd9c59671921a2d6a66b4e5ef629f60ff1878d324792613acd4889711622 |
|
MD5 | 896136a20fa4645ee35b6957448b5d27 |
|
BLAKE2b-256 | 5cdf853ff6f9edf7415f1eb650301f5760e9c2c4f547c54703d0753d3ee872e7 |
Close
Hashes for nonebot_plugin_wordcloud-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb7a518bd925f19fe81106cfc49557a929d292a431bcd1e2e16089292711c74 |
|
MD5 | bb89fbce1caf722c4f0f1efa109ec67b |
|
BLAKE2b-256 | 0b28372d6887767c019b431d81f4c2cff7550568a3be6a231e73e124c637215e |