介绍
Welcome to osu!
这是一个监控 osu! 游戏比赛并自动将比赛动态播报到 QQ 群内的插件。
安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-osu-match-monitor
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-osu-match-monitor
pdm
pdm add nonebot-plugin-osu-match-monitor
poetry
poetry add nonebot-plugin-osu-match-monitor
配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 类型 |
|---|---|---|---|
| osu_api_key | 是 | "" | str |
| osu_refresh_interval | 否 | 2 | int |
| osu_api_timeout | 否 | 5 | int |
如何获取 osu! API Key?
使用
指令表
在使用时,请自行添加对应的指令前缀。尖括号内的参数为必填。
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| osu match monitor <id> | 群员 | 否 | 群聊+私聊 | 开始监控比赛 |
| osu match stopmonitor <id> | 群员 | 否 | 群聊+私聊 | 停止监控比赛 |
如何获取 Match ID?
好问题。目前官方给出的答复是:
你无法通过任何方式搜索多人游戏大厅。你应该通过使用 !mp make 创建游戏大厅来获取此类ID,或者当你加入大厅时从BanchoBot获取它。
因此,获得ID的途径多为枚举。您可以使用工具例如 mp finder 帮助您枚举。若您正在举行锦标赛,可以参考这个文档。
效果图
Metadata
Release files for nonebot-plugin-osu-match-monitor 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_osu_match_monitor-1.2.4.tar.gz | 48.2 kB | Without provenance | Details for nonebot_plugin_osu_match_monitor-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_osu_match_monitor-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_osu_match_monitor-1.2.4-py3-none-any.whl |
Total release size: 82.9 kB
Release files / nonebot_plugin_osu_match_monitor-1.2.4.tar.gz
| Download URL | nonebot_plugin_osu_match_monitor-1.2.4.tar.gz |
|---|---|
| Size | 48.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1058cfc894a5b6804b1652af0b68d4d7452adfda2ee0255f11ae4d3185100839
|
|
BLAKE2b-256 checksum How to use checksums |
5321ef4896d507a6e59ad2a4ddd217a5a26783c09b3849e92e14f9def7050186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / nonebot_plugin_osu_match_monitor-1.2.4-py3-none-any.whl
| Download URL | nonebot_plugin_osu_match_monitor-1.2.4-py3-none-any.whl |
|---|---|
| Size | 34.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7edee2528c71fce89650de20dc915de66804714a217e0682ff1b88ffcc533b1
|
|
BLAKE2b-256 checksum How to use checksums |
62b1cdc10d35fe886996d4c2239cce19d411d874bee6283249f1f0e7387321e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for nonebot-plugin-osu-match-monitor 1.2.4
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.