Skip to main content

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

Project description

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 临时渲染缓存队列中最多存储数

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

🎉 使用

指令表

指令 权限 需要@ 范围 说明
cs2help / cs2帮助 所有人 任何 获取插件命令用法
matches [past/running/upcoming] 所有人 任何 比赛列表获取。matches可用比赛列表代替。
match <id> 所有人 任何 比赛大比分获取。match可用比分代替。
monitor <id> 群管/SUPERUSER 群聊 监视比赛开始、大比分变动、结束,参数为“cancel”时取消监听。monitor可用监视代替。
cs2whitelist <on/off> 群管/SUPERUSER 任何 设置比赛列表是否仅显示白名单赛事系列。cs2whitelist可用白名单代替。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_cs2match-1.0.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_cs2match-1.0.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_cs2match-1.0.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_cs2match-1.0.2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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}

File hashes

Hashes for nonebot_plugin_cs2match-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8052e26faaac79754e26b4c68ffd471074de01da7ef56236446df19c4a6ce276
MD5 cf1861cf8f0b1f92764e8d23f8fa0d9a
BLAKE2b-256 36ad28eace0bf5fc82515060c41a41af389fd635375a51de87958bda4401f3f0

See more details on using hashes here.

File details

Details for the file nonebot_plugin_cs2match-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_cs2match-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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}

File hashes

Hashes for nonebot_plugin_cs2match-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d06a95b8358b271366f4fc92de2ff1000e01306d01c5084a83ead0e32b1dec28
MD5 a7824ecd460a12c04c5578ca017dd878
BLAKE2b-256 3a9f4b995d9123265284c025d808a119536a3816f494ee58d248e8e15e8957af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page