Nonebot2 plugin for using ShindanMaker
Project description
nonebot-plugin-shindan
使用 ShindanMaker 网站的无聊趣味占卜
利用 playwright 将占卜结果转换为图片发出,因此可以显示图片、图表结果
插件依赖 nonebot-plugin-htmlrender 插件来渲染图片,使用前需要检查 playwright 相关的依赖是否正常安装;同时为确保字体正常渲染,需要系统中存在中文字体
使用方式
默认占卜列表及对应的网站id如下:
- 今天是什么少女 (162207)
- 人设生成 (917962)
- 中二称号 (790697)
- 异世界转生 (587874)
- 特殊能力 (1098085)
- 魔法人生 (940824)
- 抽老婆 (1075116)
- 抽舰娘 (400813)
- 抽高达 (361845)
- 英灵召唤 (595068)
- 选秀剧本 (1098152)
- 卖萌 (360578)
发送 “占卜指令 名字” 即可,如:人设生成 小Q
发送 “/占卜列表” 可以查看上述列表;
超级用户可以发送 “/添加占卜 id 指令”、“/删除占卜 id” 增删占卜列表,可以发送 “/设置占卜 id image/text”设置输出形式
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_shindan
- 使用 pip
pip install nonebot_plugin_shindan
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
nonebot_plugin_shindan-0.2.3.tar.gz
(271.8 kB
view hashes)
Built Distribution
Close
Hashes for nonebot_plugin_shindan-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8036ce37511675088e2aa5bdc83160548abed0ed0ab20088b322a079d9f79fc4 |
|
MD5 | d6be502790358cc0d67ed57fc42bb3f1 |
|
BLAKE2b-256 | 56e27042c41cd35a325043153156fd1bc06f6af09b24c57e7dd5c4ad9ffb9289 |
Close
Hashes for nonebot_plugin_shindan-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62dac23774a39a347e3e1cc8ffa70626f8c89cd99e17cf41fd193ed51fb4d1d9 |
|
MD5 | 546bff2246d5dc1b3e72efe5ade7ec88 |
|
BLAKE2b-256 | 957ba4d067037529891df32f366d7a0cf8a2f0e42230f018e0843eee6fcfd133 |