Skip to main content

NoneBot2 雀魂信息查询插件

Project description

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

Project details


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_majsoul-0.2.10.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_majsoul-0.2.10-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_majsoul-0.2.10.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_majsoul-0.2.10.tar.gz
Algorithm Hash digest
SHA256 5436d8346aef1566ff25913d71e8903a243d77a75318354fe718e669953cd46c
MD5 b7c7b2d11a2085fa983f72b93900e764
BLAKE2b-256 cc3519382e48a5499a2c9a1993718fc4375a92217f0ef71be9fef06e7ae134d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_majsoul-0.2.10.tar.gz:

Publisher: release.yml on bot-ssttkkl/nonebot-plugin-majsoul

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_majsoul-0.2.10-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_majsoul-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 55d9237d39ce4ec486abde34c16e187e73270dc67f1613cc48dca1d0e45a978c
MD5 61485423799e68537dd858df9e3beb4c
BLAKE2b-256 4056f62e7be0d99d1f5b5d55ca5012effd2e75836ac533798e3323753087e46e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_majsoul-0.2.10-py3-none-any.whl:

Publisher: release.yml on bot-ssttkkl/nonebot-plugin-majsoul

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page