Per docs/plugin-audit-report.md (plugins normalized to Trigger(handlers) → Service(services) → Model(repository/models) + utils): - Split monolithic __init__.py into handlers/services/utils across dailywife, deer_pipe, dice, galgame_card, helldivers_tools, huoziyinshua, learning_chat, makeaquote, mc_server_status, ncm_saying, picfinder_take, picstatus, random_jm_code, regif, steam_info, video_analysis, group_tools - Move static assets under res/: deer_pipe font/img, makeaquote font, helldivers img/templates, huoziyinshua HuoZiYinShua - Add config.py + register_config_items to ncm_saying, random_jm_code, group_tools; learning_chat unified config bridge - Remove deprecated: voice_trans plugin, bf_bot/test.py, dead code in dailywife/deer_pipe, empty dirs, debug scripts under helldivers temp - Disable brash_general_supercredits_tools (stub comment only) - bot.py: optional stdout/stderr redirect to log file for Web log viewer, force ANSI colorize on non-TTY sinks - Move runtime data (jm_code.json) out of plugin dir into hexi/data - Docs: plugin-audit-report.md; README reflects removed plugins Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.6 KiB
Python
37 lines
1.6 KiB
Python
from nonebot import require
|
|
from nonebot.plugin import PluginMetadata
|
|
|
|
require("nonebot_plugin_alconna")
|
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
name="群管理工具",
|
|
description=(
|
|
"群管理指令与群管小功能合集:龙王查询、禁言、头衔、名片、群名管理、"
|
|
"违禁词语音、聊天互动、退群通知、随机复读、禁言套餐"
|
|
),
|
|
usage=(
|
|
"注意本页指令可能由于风控在您的群不可用\n"
|
|
"[谁是龙王] 查看本群龙王\n"
|
|
"[龙王榜] 查看本群B话最多的人\n"
|
|
"以下指令需要机器人是管理员, 且被执行人是普通群员\n"
|
|
"[修改群名XXX] 群名修改为XXX\n"
|
|
"[修改名片XXX@某人] 修改某人的群名片为XXX\n"
|
|
"[来发口球360@某人] 禁言某人360秒, 可以修改为自己需要的时间\n"
|
|
"[解除口球@某人] 取消某人的禁言\n"
|
|
"[全员口球] 开启全员禁言\n"
|
|
"[取消全员禁言] 关闭全员禁言\n"
|
|
"[极限一换一60@某人]神秘功能, 60可以修改为30以下的秒数\n"
|
|
"[申请头衔XXX] 申请/删除专属头衔(bot需为群主)\n"
|
|
"[违禁词] 触发黑手语音\n"
|
|
"[沙雕机器人/老婆/老公/mua/何意味/确实/内鬼...] 聊天互动\n"
|
|
"[睡眠套餐/精致睡眠] 8小时禁言(bot需具有群管理权限)\n"
|
|
"[来一份精致昏睡下午茶套餐] 随机时长禁言(bot需具有群管理权限)"
|
|
),
|
|
type="application",
|
|
)
|
|
|
|
from . import config as _config # noqa: E402,F401
|
|
from .handlers import chat, management, notices, repeater # noqa: E402,F401
|
|
|
|
_config.register_config()
|