Skip to main content

nonebot-plugin-cs2match

✨ CS2赛事查询 ✨

license pypi python

📖 介绍

实时追踪 Counter-Strike 2 职业赛事,进行开赛自动提醒与大比分异动推送。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-cs2match
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-cs2match
pdm
pdm add nonebot-plugin-cs2match
poetry
poetry add nonebot-plugin-cs2match
conda
conda install nonebot-plugin-cs2match

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_cs2match"]

⚙️ 配置

在插件的config.py文件中修改下表中的配置

配置项 必配置 默认值 说明
pandascore_token 是 无 PandaScore提供商获取的Token
serie_rules 否 见文件 按照优先级给赛事系列排序(同时也是赛事系列白名单)
client_timeout 否 10 API调用客户端最大超时限制,单位为秒
cache_ttl 否 60 api请求临时缓存存活时间及比赛监视检测间隔时间,单位为秒
cache_max_size 否 64 临时渲染缓存队列中最多存储数
MAX_MISSES 否 10 监视目标连续多少轮(仅统计三个接口均成功获取的轮次)未被发现时自动取消监视

部分运行时配置(DynamicConfig)仅开放运行时修改,详情查阅指令表

🎉 使用

指令表

指令 权限 需要@ 范围 说明
cs2help / cs2帮助 所有人 否 任何 获取插件命令用法
matches [past/running/upcoming] 所有人 否 任何 比赛列表获取。matches可用比赛列表代替。
match <slug/队名> 所有人 否 任何 比赛大比分获取,支持直接输入战队名(同名多场时展示第一个并提示)。match可用比分代替。
monitor <slug/队名> 群管/SUPERUSER 否 群聊 追加监视比赛开始、大比分变动、结束,参数为“cancel”时取消本群全部监听。monitor可用监视代替。
cs2whitelist <on/off> 群管/SUPERUSER 否 任何 设置比赛列表是否仅显示白名单赛事系列。cs2whitelist可用白名单代替。
cs2uid 所有人 否 任何 查看自己的用户ID与当前场景ID。

Metadata

Release files for nonebot-plugin-cs2match 1.1.1

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-cs2match 1.1.1
File Size Uploaded
nonebot_plugin_cs2match-1.1.1.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-cs2match 1.1.1
File Interpreter ABI Platform
nonebot_plugin_cs2match-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / nonebot_plugin_cs2match-1.1.1.tar.gz

Download URL nonebot_plugin_cs2match-1.1.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a9103e89ebed55720fcd67aaf57470c4e7439f0a2c6eb989ddc88ce667aac1b
BLAKE2b-256 checksum
How to use checksums
00cf9c77aba092308eb5a7a355eaab9a60ea54916af7612d9f8215688f6de77b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nonebot_plugin_cs2match-1.1.1-py3-none-any.whl

Download URL nonebot_plugin_cs2match-1.1.1-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfebbbac760576baefa78264a0340d63e9b4b082c2596d01bb151dc4dea10f58
BLAKE2b-256 checksum
How to use checksums
344f1b896dc6760f15c1f583594904ac7fd90eae20dd81f482e39ae1fa613017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

1.2.2

2 release files

1.2.1

2 release files

This release

1.1.1 This release

2 release files

1.0.2

2 release files

1.0.1

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