Skip to main content
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}的成绩图(不使用缓存)

效果图

如果有效果图的话

Metadata

Release files for nonebot-plugin-ddrace 0.0.6

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-ddrace 0.0.6
File Size Uploaded
nonebot_plugin_ddrace-0.0.6.tar.gz 24.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-ddrace 0.0.6
File Interpreter ABI Platform
nonebot_plugin_ddrace-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 53.5 kB

Release files / nonebot_plugin_ddrace-0.0.6.tar.gz

Download URL nonebot_plugin_ddrace-0.0.6.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cc0b89c88404f3e6351e703c18cba515145e4bb50caaeba86268d7229666a329
BLAKE2b-256 checksum
How to use checksums
1c54262e7f01c3f1b9565d39c46f89b04f3ac0880ce1e3d958844ceffc985c3a
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_ddrace-0.0.6-py3-none-any.whl

Download URL nonebot_plugin_ddrace-0.0.6-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4a1762db38511e4e4bb83d8931617fff5833e558cbb82940a54918b2e9ceff0
BLAKE2b-256 checksum
How to use checksums
c08b08a07055eb54134a054167f6fcd014bfcf750f789f2f5af98287a52da7c0
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

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.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