Skip to main content

nonebot-plugin-nagabus

NAGA公交车。为群友提供NAGA拼车服务。

用法

对于车主

你需要一个雀魂账号用于自动下载牌谱(推荐使用小号),将用户名与密码填入配置中:

majsoul_username=xxxxxx@xxx.com
majsoul_password=xxxxxx

最后你需要一个NAGA账号(废话),登录后在 https://naga.dmv.nico/naga_report/top/ 获取两个cookie(csrftoken和naga-report-session-id),Bot启动后调用/naga-set-cookies csrftoken=xxxxxxxx; naga-report-session-id=xxxxxxxx指令

(指令仅超级用户可用,通过在配置文件中设置SUPERUSERS可设置超级用户)

SUPERUSERS=["12345678"]

权限控制

配合nonebot-plugin-access-control,可以配置允许上车的群组和用户,或者是限制时间段内使用次数:

譬如,超级用户可以通过分别发送以下指令,从而只允许群聊114514使用。

/ac permission deny --srv nonebot_plugin_nagabus --sbj all
/ac permission allow --srv nonebot_plugin_nagabus --sbj qq:g114514

譬如,超级用户可以通过分别发送以下指令,从而限制每天只允许使用10次解析功能。(解析失败、重复解析不计算在内)

/ac limit add --srv nonebot_plugin_nagabus.analyze --sbj all --span 1d --limit 10

具体可以参考nonebot-plugin-access-control的文档进行权限控制。

对于用户

  • 牌谱解析:
    • /naga <雀魂牌谱链接> <东/南x局x本场>:消耗10NP解析雀魂小局
    • /naga <天凤牌谱链接>:消耗50NP解析天凤半庄
  • 查看使用情况:
    • /naga本月使用情况
    • /naga上月使用情况

以上命令格式中,以<>包裹的表示一个参数。

Special Thanks

Metadata

Release files for nonebot-plugin-nagabus 0.3.2

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-nagabus 0.3.2
File Size Uploaded Provenance Actions
nonebot_plugin_nagabus-0.3.2.tar.gz 30.5 kB Without provenance Details for nonebot_plugin_nagabus-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 69.9 kB

Release files / nonebot_plugin_nagabus-0.3.2.tar.gz

Download URL nonebot_plugin_nagabus-0.3.2.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da0d163abb86c2c335c406a8ff64d0c59ed98801cb438f26c40e415ceed0993e
BLAKE2b-256 checksum
How to use checksums
5525b334a45fa906a9956b88e6caa9c061f98426fd02a582fa36c262bf73784e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.2 Windows/10

Release files / nonebot_plugin_nagabus-0.3.2-py3-none-any.whl

Download URL nonebot_plugin_nagabus-0.3.2-py3-none-any.whl
Size 39.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
450ba4492d328ece1f1fb776c2c8c6b8e7516952ab6d90c01cf1e0f82106c796
BLAKE2b-256 checksum
How to use checksums
f3742c46668187a5764285f61f3cf962429fb69c8c97c755b142897cd7379f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.2 Windows/10

Security for nonebot-plugin-nagabus 0.3.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

This release

0.3.2 This release

2 release files No provenance

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