Skip to content

Commit

Permalink
fix(qq_chat): fix mcdr command && remove data config
Browse files Browse the repository at this point in the history
  • Loading branch information
Aimerny committed Feb 10, 2025
1 parent 2a48a49 commit 0d35abe
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/qq_chat/qq_chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ def on_load(mcdr_server: PluginServerInterface, old):
global config, data, main_group, user_cache, server
server = mcdr_server
config = server.load_config_simple(target_class=Config)
all_data = server.load_config_simple(
"data.json",
default_config={"data": {}, "user_cache": {}},
echo_in_console=False
)
# 存储用户bound信息
data = all_data["data"]
# 存储群组服操作该服务器的用户信息
user_cache = all_data["user_cache"]

main_group = parse_main_group()

Expand Down Expand Up @@ -584,7 +575,7 @@ def mcdr_command_handle(server: PluginServerInterface, message: Message,
command = " ".join(command[1:])
if not command.startswith("!!"):
command = "!!" + command
execute(server, message, command)
server.execute_command(server, message, command)


def command_command_handle(server: PluginServerInterface, message: Message,
Expand Down

0 comments on commit 0d35abe

Please sign in to comment.