use qtoml not rtoml

This commit is contained in:
shenjack 2023-12-28 21:55:21 +08:00
parent d2a05ef0c3
commit 69f202e83a
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 3 deletions

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 lib_not_dr.types import Options
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,5 +1,5 @@
lib-not-dr lib-not-dr
colorama colorama
rtoml qtoml
pynacl pynacl
python-socketio[asyncio_client] python-socketio[asyncio_client]