-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4633c67
commit 10e2d7e
Showing
17 changed files
with
140 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
matrix_sync: | ||
check_config: Please recheck your config, if you confirm it's correct, issue this in GitHub. | ||
login: | ||
failed: Failed to login your bot | ||
success: Login by password successfully! | ||
save_token: Saving token for the bot account... | ||
on_receiver_cancelled: Receiver task was cancelled. | ||
on_sync_running: Already running message sync! | ||
on_sync_start: Starting message sync... | ||
on_unload: Unloading MatrixSync... | ||
server_status: | ||
starting: MC server is starting... | ||
on_startup: MC server started! | ||
on_stop: MC server stopped. | ||
on_crash: MC server crashed! | ||
sync_status: | ||
running: MSync is running... | ||
not_running: MSync is not running. | ||
token_mismatch: The token mismatches present bot account! Sync tasks will not continue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
matrix_sync: | ||
check_config: 请重新检查你的配置,如果你确信其准确无误,请前往GitHub Issues页面反馈相关问题! | ||
login: | ||
failed: 无法登录你的机器人 | ||
success: 成功使用密码完成登录! | ||
save_token: 正在为机器人账号保存Token... | ||
on_receiver_cancelled: 接收器任务已经取消。 | ||
on_sync_running: 消息同步已在运行! | ||
on_sync_start: 开始消息同步... | ||
on_unload: 正在卸载 MatrixSync... | ||
server_status: | ||
starting: MC服务器启动中... | ||
on_startup: MC服务器启动完成! | ||
on_stop: MC服务器已关闭 | ||
on_crash: MC服务器发生崩溃! | ||
sync_status: | ||
running: "[MSync] 消息同步正在运行..." | ||
not_running: "[MSync] 消息同步未在运行!" | ||
token_mismatch: Token和现有的账号不匹配!同步任务将不会继续进行。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import matrix_sync.globals as globals | ||
import matrix_sync.plg_globals as plg_globals | ||
|
||
from .default import * | ||
from ..utils import * | ||
|
||
|
||
async def load_config(server: PluginServerInterface): | ||
globals.config = server.load_config_simple('config.json', account_config) | ||
if globals.config == account_config: | ||
plg_globals.config = server.load_config_simple('config.json', account_config) | ||
if plg_globals.config == account_config: | ||
server.unload_plugin(plgSelf.id) | ||
globals.settings = server.load_config_simple('settings.json', default_settings) | ||
if not globals.settings["log_style"]["mcdr"]: | ||
plg_globals.settings = server.load_config_simple('settings.json', default_settings) | ||
if not plg_globals.settings["log_style"]["mcdr"]: | ||
psi.logger.info("Plugin MatrixSync will use its logger, with different format to MCDR.") |
Oops, something went wrong.