Skip to content

Commit

Permalink
模块路径调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooling0602 committed Nov 8, 2024
1 parent b75e804 commit 24c722f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion matrix_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import os
import sys
import matrix_sync.utils.config
import matrix_sync.config
from matrix_sync.reporter import sendMsg
from mcdreforged.api.all import *
from nio import AsyncClient, LoginResponse
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions matrix_sync/entry.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import asyncio
import matrix_sync.utils.config
import matrix_sync.config
import matrix_sync.client
import matrix_sync.receiver
import matrix_sync.reporter

from matrix_sync.utils.globals import *
from matrix_sync.client import init
from matrix_sync.utils.config import load_config, check_config
from matrix_sync.config import load_config, check_config
from matrix_sync.utils.commands import *
from matrix_sync.reporter import sender
from mcdreforged.api.all import *

# Framwork ver: 2.4.0-3
def on_load(server: PluginServerInterface, old):
load_config()
server.logger.info(matrix_sync.utils.config.load_tip)
server.logger.info(matrix_sync.config.load_tip)
check_config()
do_unload = matrix_sync.utils.config.do_unload
do_unload = matrix_sync.config.do_unload
if do_unload:
server.unload_plugin("matrix_sync")
else:
Expand Down
2 changes: 1 addition & 1 deletion matrix_sync/receiver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# thread MatrixReceiver
import asyncio
import matrix_sync.utils.config
import matrix_sync.config

from matrix_sync.utils.token import getToken
from matrix_sync.utils.globals import psi
Expand Down
2 changes: 1 addition & 1 deletion matrix_sync/reporter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import matrix_sync.client
import matrix_sync.utils.config
import matrix_sync.config

from mcdreforged.api.all import *
from nio import AsyncClient
Expand Down

0 comments on commit 24c722f

Please sign in to comment.