功能:实现 Danding_Points 积分系统插件
- 新增积分系统插件,支持积分查询、签到、转账等核心功能 - 包含对应的测试脚本 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
18
danding_bot/plugins/danding_points/__init__.py
Normal file
18
danding_bot/plugins/danding_points/__init__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from nonebot.plugin import PluginMetadata
|
||||
from .config import Config
|
||||
from .api import PointsAPI
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="Danding Points",
|
||||
description="Global points/virtual currency system for danding-bot",
|
||||
usage="Import points_api from this plugin to use the points API",
|
||||
type="service",
|
||||
homepage="https://github.com/danding-bot/danding-bot",
|
||||
config=Config,
|
||||
)
|
||||
|
||||
# Initialize configuration and API
|
||||
config = Config()
|
||||
points_api = PointsAPI(config)
|
||||
|
||||
__all__ = ["points_api", "PointsAPI", "Config"]
|
||||
Reference in New Issue
Block a user