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.6.tar.gz (24.0 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_ddrace-0.0.6-py3-none-any.whl (29.4 kB view hashes)

Uploaded Python 3

Supported by

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