From 69f202e83a7477490a58b5a1548d7d9240e82c72 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 28 Dec 2023 21:55:21 +0800 Subject: [PATCH] use qtoml not rtoml --- connect.py | 4 ++-- requirement.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connect.py b/connect.py index 286f9058..4af88a79 100644 --- a/connect.py +++ b/connect.py @@ -5,7 +5,7 @@ import traceback from typing import Dict, List, Tuple, Any, Optional, Union, Literal -import rtoml +import qtoml import socketio from colorama import Fore, Style from nacl.signing import SigningKey @@ -14,7 +14,7 @@ from lib_not_dr.types import Options def get_config() -> Tuple[str, str, int]: 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'] diff --git a/requirement.txt b/requirement.txt index 4c7f521b..389c64f7 100644 --- a/requirement.txt +++ b/requirement.txt @@ -1,5 +1,5 @@ lib-not-dr colorama -rtoml +qtoml pynacl python-socketio[asyncio_client]