feat: 添加积分查询插件,提供用户积分查询相关命令
- 新增积分查询插件,包含我的积分、积分查询、积分排行和积分历史查询命令 - 支持群组和私聊场景,排行榜功能仅限群组使用 - 实现用户显示名称优先级(群昵称 > 昵称 > 用户ID) - 添加详细的帮助文档和使用说明
This commit is contained in:
15
danding_bot/plugins/danding_points_query/__init__.py
Normal file
15
danding_bot/plugins/danding_points_query/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from nonebot.plugin import PluginMetadata
|
||||
from .config import Config
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="Danding Points Query",
|
||||
description="User-facing commands for querying points/积分",
|
||||
usage="Commands: 我的积分, 积分查询, 积分排行, 积分历史查询",
|
||||
type="application",
|
||||
config=Config,
|
||||
extra={
|
||||
"required_plugins": ["danding_bot.plugins.danding_points"],
|
||||
},
|
||||
)
|
||||
|
||||
from . import commands # noqa: F401, E402
|
||||
Reference in New Issue
Block a user