Skip to main content

提供 DDNet 成绩查询功能

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-ddrace

✨ 提供 DDNet 成绩查询功能 ✨

license python pypi

📖 介绍

这是一个 nonebot2 插件,提供 DDNet 成绩查询功能 可以查询玩家的成绩, 服务器的状态等信息(还没写好), 使用图片发送(这个真有)

Python新手项目,代码质量低,欢迎各位大佬指导/PR

💿 安装

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

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

plugins = ["nonebot_plugin_ddrace"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 类型 默认值 说明
ddr_need_at Bool False 是否需要at bot触发指令
ddr_at_back Bool False 是否at回发送指令者
ddr_reply Bool False 是否引用指令消息
ddr_priority Int 10 优先级,越小越优先,最低为1

| ddr_cache_time | 否 | Int | 60 | 缓存时间,单位为分钟,为 0 时不缓存 |

🎉 使用

指令表

指令 权限 需要@ 范围 说明
points 群员 跟随全局 群聊,私聊 查询{name}的成绩图
fpoints 群员 跟随全局 群聊,私聊 查询{name}的成绩图(不使用缓存)

效果图

如果有效果图的话

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_ddrace-0.0.5.tar.gz (24.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_ddrace-0.0.5-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ddrace-0.0.5.tar.gz.

File metadata

  • Download URL: nonebot_plugin_ddrace-0.0.5.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nonebot_plugin_ddrace-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1a540bfbe05d9fdf4680465cbe00582dab8129336075f7e8b7503834bb85d0a2
MD5 bb07c7df88674344f028842fbafbf77a
BLAKE2b-256 1648dfbfbebc48e7c70d6cb0e4fdca1d5de7909c5016c5479c86bb474ea5a403

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ddrace-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ddrace-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbebce1ce47abc19bb932a8bca55591c33a01efe2fc3dbf29fad247ffcd397a6
MD5 fde1aa7691ea9b1a70497121bd5c9ec7
BLAKE2b-256 e416e7b9350c8b94b72099b46c944592314eddc9aa567fac1e6e0a47d59493f3

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