Skip to main content

nonebot-plugin-shindan

使用 ShindanMaker 网站的无聊趣味占卜

利用 playwright 将占卜结果转换为图片发出,因此可以显示图片、图表结果

安装

  • 使用 nb-cli
nb plugin install nonebot_plugin_shindan
  • 使用 pip
pip install nonebot_plugin_shindan

插件依赖 nonebot-plugin-htmlrender 插件来渲染图片,使用前需要检查 playwright 相关的依赖是否正常安装;同时为确保字体正常渲染,需要系统中存在中文字体

使用方式

默认占卜列表及对应的网站id如下:

  • 今天是什么少女 (162207)
  • 人设生成 (917962)
  • 中二称号 (790697)
  • 异世界转生 (587874)
  • 魔法人生 (940824)
  • 抽老婆 (1075116)
  • 抽舰娘 (400813)
  • 抽高达 (361845)
  • 英灵召唤 (595068)
  • 卖萌 (360578)

发送 “占卜指令 名字” 即可,如:人设生成 小Q

以下命令需要加命令前缀 (默认为/),可自行设置为空

发送 “占卜列表” 可以查看如下列表;

超级用户 可用的命令:

超级用户设置方式:Nonebot 超级用户配置

发送 “添加占卜 id 指令” 添加占卜

发送 “删除占卜 id” 删除占卜

发送 “设置占卜指令 id 指令” 设置占卜指令

发送 “设置占卜模式 id text/image” 设置占卜输出形式

对于需要登录推特的占卜,可以在 .env.xxx 文件中添加 ShindanMaker cookie:

shindanmaker_cookie=xxx

cookie 获取方式:

F12 打开开发工具,查看 shindanmaker.com 请求的响应头,找形如 _session=xxx; 的片段,如:

shindanmaker_cookie="_session=xxx;"

Metadata

Release files for nonebot_plugin_shindan 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot_plugin_shindan 0.6.5
File Size Uploaded
nonebot_plugin_shindan-0.6.5.tar.gz 269.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot_plugin_shindan 0.6.5
File Interpreter ABI Platform
nonebot_plugin_shindan-0.6.5-py3-none-any.whl Python 3 none any Details

Total release size: 542.3 kB

Release files / nonebot_plugin_shindan-0.6.5.tar.gz

Download URL nonebot_plugin_shindan-0.6.5.tar.gz
Size 269.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c25d23c213161167670285545a89faac71b8a503104c1fafac421d80d990e5a5
BLAKE2b-256 checksum
How to use checksums
972dcfbf53032abe43f8b1323d0c77c91a3fa1bd4ecbc35c48d1578f5f5a5955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

Release files / nonebot_plugin_shindan-0.6.5-py3-none-any.whl

Download URL nonebot_plugin_shindan-0.6.5-py3-none-any.whl
Size 272.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81c8a058e6210b7899fd52c0c677220c3e2c6dc36ea4f0169a246cc26b868c7b
BLAKE2b-256 checksum
How to use checksums
2d384b61b75ecd2bd5cb047d59607c27bca1e1204aa3c59202e5a19e2101fbc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page