Skip to main content

nonebot

nonebot-plugin-majsoul

✨ 雀魂信息查询插件 ✨

license pypi python

受DaiShengSheng/Majsoul_bot启发而写的雀魂信息查询 Bot 插件。

功能

雀魂账号绑定

账号绑定后,执行命令时无需再手动指定账号

  • 查询当前绑定:/雀魂账号绑定
  • 绑定账号:/雀魂账号绑定 <雀魂账号>
  • 解除当前绑定:/雀魂账号解绑

账号绑定用

雀魂牌谱屋

查询个人数据(可按照时间、按照场数、按照房间类型查询)

指令:/雀魂(三麻)信息 <雀魂账号> [<房间类型>] [最近<数量>场] [最近<数量>{天|周|个月|年}]

雀魂信息

雀魂信息2

查询个人最近对局(可按照房间类型查询)

指令:/雀魂(三麻)对局 <雀魂账号> [<房间类型>]

最近对局

绘制个人PT推移图

若绘图出现乱码或是需要更换绘图字体,请参考下文进行字体配置

指令:/雀魂(三麻)PT图 <雀魂账号> [最近<数量>场] [最近<数量>{天|周|个月|年}]

雀魂PT推移图

雀魂PT推移图(图)

下载雀魂牌谱

将雀魂牌谱保存为天凤JSON格式。必须配置雀魂账号与密码。

指令:/下载雀魂牌谱 <牌谱链接或UUID>

配置字体

更换为系统已安装字体

修改配置项majsoul_font为字体名。

例如:配置majsoul_font=Microsoft YaHei将使用微软雅黑字体

更换为外部字体

修改配置项majsoul_font_path为字体路径,并修改配置项majsoul_font为字体名。

例如:在 https://github.com/lxgw/LxgwWenKai-Lite/releases 下载LXGWWenKaiMonoLite-Regular.ttf并放置于bot根目录,配置majsoul_font_path=LXGWWenKaiMonoLite-Regular.ttf,配置majsoul_font=LXGW WenKai Mono Lite

配置项

majsoul_query_timeout

指令超时(单位:秒)

majsoul_font

绘图用的字体名称

majsoul_font_path

绘图用的字体文件路径

majsoul_send_aggregated_message

是否使用合并转发消息发送查询对局的结果

默认值:True

majsoul_username

下载牌谱用的雀魂账号邮箱。推荐使用小号。

majsoul_password

下载牌谱用的雀魂账号密码。推荐使用小号。

See Also

在线乞讨

点击请我打两把maimai

LICENSE

AGPLv3

Metadata

Release files for nonebot-plugin-majsoul 0.2.10

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-majsoul 0.2.10
File Size Uploaded Provenance Actions
nonebot_plugin_majsoul-0.2.10.tar.gz 33.4 kB With provenance Details for nonebot_plugin_majsoul-0.2.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-majsoul 0.2.10
File Interpreter ABI Platform Actions
nonebot_plugin_majsoul-0.2.10-py3-none-any.whl Python 3 none any Details for nonebot_plugin_majsoul-0.2.10-py3-none-any.whl

Total release size: 81.7 kB

Release files / nonebot_plugin_majsoul-0.2.10.tar.gz

Download URL nonebot_plugin_majsoul-0.2.10.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5436d8346aef1566ff25913d71e8903a243d77a75318354fe718e669953cd46c
BLAKE2b-256 checksum
How to use checksums
cc3519382e48a5499a2c9a1993718fc4375a92217f0ef71be9fef06e7ae134d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 23, 2025.

Transparency log

Release files / nonebot_plugin_majsoul-0.2.10-py3-none-any.whl

Download URL nonebot_plugin_majsoul-0.2.10-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55d9237d39ce4ec486abde34c16e187e73270dc67f1613cc48dca1d0e45a978c
BLAKE2b-256 checksum
How to use checksums
4056f62e7be0d99d1f5b5d55ca5012effd2e75836ac533798e3323753087e46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 23, 2025.

Transparency log

Security for nonebot-plugin-majsoul 0.2.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nonebot_plugin_majsoul-0.2.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 23, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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