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.4.tar.gz (22.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.4-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_ddrace-0.0.4.tar.gz
  • Upload date:
  • Size: 22.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.4.tar.gz
Algorithm Hash digest
SHA256 b592e967d926c4fac9d44d6b817fe9461beb03b899916138062e3006f2e67c27
MD5 e61ff8f0c5e4f873c861c328d8c7a54d
BLAKE2b-256 0a5f71fa8fed8b9e79ce50b15c34447c3d38618558e363c7c768daf77c61f985

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ddrace-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5b3e10b22bae825b705f89a890e5b9a143d785e95585674dc61c48e0b2e99d
MD5 f596b868ebfbd36893c8da94e8fde687
BLAKE2b-256 c31a1bb2e9a754d7f859b8d8184edbc9eddd5efe34c4a4cf7aa18eca14b718bb

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