Skip to main content

nonebot-plugin-osu-match-monitor

osu! NoneBot osu! 比赛监控

license pypi CodeFactor

GitHub Release python

介绍

Welcome to osu! 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! 账号,随后打开这个链接进行申请。

api.png

使用

指令表

在使用时,请自行添加对应的指令前缀。尖括号内的参数为必填。

指令 权限 需要@ 范围 说明
osu match monitor <id> 群员 否 群聊+私聊 开始监控比赛
osu match stopmonitor <id> 群员 否 群聊+私聊 停止监控比赛

如何获取 Match ID?

好问题。目前官方给出的答复是:

你无法通过任何方式搜索多人游戏大厅。你应该通过使用 !mp make 创建游戏大厅来获取此类ID,或者当你加入大厅时从BanchoBot获取它。

因此,获得ID的途径多为枚举。您可以使用工具例如 mp finder 帮助您枚举。若您正在举行锦标赛,可以参考这个文档。

效果图

example.jpg

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)

Source distribution for nonebot-plugin-osu-match-monitor 1.2.4
File Size Uploaded
nonebot_plugin_osu_match_monitor-1.2.4.tar.gz 48.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-osu-match-monitor 1.2.4
File Interpreter ABI Platform
nonebot_plugin_osu_match_monitor-1.2.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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