将rtoml改为qtoml

This commit is contained in:
SharwOrange橙夜 2023-12-28 22:05:10 +08:00
parent 1a5001312b
commit cebf394e23
6 changed files with 13 additions and 3 deletions

3
.vs/ProjectSettings.json Normal file
View File

@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}

View File

@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\.gitignore",
"PreviewInSolutionExplorer": false
}

BIN
.vs/python-bot/v17/.wsuo Normal file

Binary file not shown.

BIN
.vs/slnx.sqlite Normal file

Binary file not shown.

View File

@ -5,7 +5,7 @@ import traceback
from typing import Dict, List, Tuple, Any, Optional, Union, Literal from typing import Dict, List, Tuple, Any, Optional, Union, Literal
import rtoml import qtoml
import socketio import socketio
from colorama import Fore, Style from colorama import Fore, Style
from nacl.signing import SigningKey from nacl.signing import SigningKey
@ -14,7 +14,7 @@ from mcstatus import JavaServer
def get_config() -> Tuple[str, str, int]: def get_config() -> Tuple[str, str, int]:
with open('config.toml', 'r', encoding='utf-8') as f: with open('config.toml', 'r', encoding='utf-8') as f:
config = rtoml.load(f) config = qtoml.load(f)
return config['host'], config['private_key'], config['self_id'] return config['host'], config['private_key'], config['self_id']

View File

@ -1,6 +1,6 @@
lib-not-dr lib-not-dr
colorama colorama
rtoml qtoml
pynacl pynacl
python-socketio[asyncio_client] python-socketio[asyncio_client]
mcstatus mcstatus