No project description provided
Project description
nonebot-plugin-nagabus
NAGA公交车。为群友提供NAGA拼车服务。
用法
对于车主
首先你需要一个NAGA账号(废话),登录后在 https://naga.dmv.nico/naga_report/top/ 获取两个cookie(csrftoken和naga-report-session-id)填入配置中:
naga_cookies={"csrftoken":"xxxxxx","naga-report-session-id":"xxxxxx"}
其次你需要一个雀魂账号用于自动下载牌谱(推荐使用小号),将用户名与密码填入配置中:
majsoul_username=xxxxxx@xxx.com
majsoul_password=xxxxxx
权限控制
配合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
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
Built Distribution
Close
Hashes for nonebot_plugin_nagabus-0.2.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 564da3548a5e1d83ee53a6ad3a344b7ed24575b3de4496d21e891dc2a4b0ba2d |
|
MD5 | 23d472c3dd1d264fa584c7b0adb716aa |
|
BLAKE2b-256 | 63220b619030f830cc0109fd917452b1a5986bd283df8a46e225f21806503786 |
Close
Hashes for nonebot_plugin_nagabus-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56275ce027ba5f14b43021385ea0a15305fa9bf2181e97a6a8909765f617a65 |
|
MD5 | bb1479e265b3172eb6a4657143352fc5 |
|
BLAKE2b-256 | 079ee2e44148023136818954257ec9309763c86bc1980b312974abf66e7e81f4 |