修复代码格式和文件名大小写问题

This commit is contained in:
Windpicker-owo
2025-08-31 20:50:17 +08:00
parent df29014e41
commit 8149731925
218 changed files with 6913 additions and 8257 deletions

View File

@@ -83,34 +83,20 @@ class HelloWorldPlugin(BasePlugin):
python_dependencies = []
config_file_name = "config.toml"
enable_plugin = False
config_schema = {
"meta": {
"config_version": ConfigField(
type=int,
default=1,
description="配置文件版本,请勿手动修改。"
),
"config_version": ConfigField(type=int, default=1, description="配置文件版本,请勿手动修改。"),
},
"greeting": {
"message": ConfigField(
type=str,
default="这是来自配置文件的问候!👋",
description="HelloCommand 使用的问候语。"
type=str, default="这是来自配置文件的问候!👋", description="HelloCommand 使用的问候语。"
),
},
"components": {
"hello_command_enabled": ConfigField(
type=bool,
default=True,
description="是否启用 /hello 命令。"
),
"random_emoji_action_enabled": ConfigField(
type=bool,
default=True,
description="是否启用随机表情动作。"
),
}
"hello_command_enabled": ConfigField(type=bool, default=True, description="是否启用 /hello 命令。"),
"random_emoji_action_enabled": ConfigField(type=bool, default=True, description="是否启用随机表情动作。"),
},
}
def get_plugin_components(self) -> List[Tuple[ComponentInfo, Type]]:
@@ -122,8 +108,8 @@ class HelloWorldPlugin(BasePlugin):
if self.get_config("components.hello_command_enabled", True):
components.append((HelloCommand.get_command_info(), HelloCommand))
if self.get_config("components.random_emoji_action_enabled", True):
components.append((RandomEmojiAction.get_action_info(), RandomEmojiAction))
return components
return components