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.1.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.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_cs2match-1.0.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.1.tar.gz
Algorithm Hash digest
SHA256 9546b063cf865bbfcea5d276b99a5e63a544b4d0b443caf1b8a354eb1386bc12
MD5 60db6b9bbe1c897cb0c7459a13e41ca4
BLAKE2b-256 7f2c776a8ef9cccc1139a88d52ce5a710a5f717b0dfa8513cae70beee2b0f050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_cs2match-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8f26112f257fab6aca80b2242b796abb5d6ecb260c1e56281bb8f234c48834
MD5 61df3b296dadca2adcd2229f8810b4c7
BLAKE2b-256 c22175795dd45108449994583b618b40888dbfbcf251782d1dd9a0c2bb3e65c8

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