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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_ddrace-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cc0b89c88404f3e6351e703c18cba515145e4bb50caaeba86268d7229666a329
MD5 b6f8ba4760b49407a537ee14317db881
BLAKE2b-256 1c54262e7f01c3f1b9565d39c46f89b04f3ac0880ce1e3d958844ceffc985c3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ddrace-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a1762db38511e4e4bb83d8931617fff5833e558cbb82940a54918b2e9ceff0
MD5 1a90e1851efc543b460adb3302755289
BLAKE2b-256 c08b08a07055eb54134a054167f6fcd014bfcf750f789f2f5af98287a52da7c0

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