From c3fc5d429b09fd2a019c40d485d8b6ed9ee4cff3 Mon Sep 17 00:00:00 2001 From: snowy Date: Sat, 10 Aug 2024 23:35:32 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix=20=E5=A4=9A=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/register_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liteyuki/plugins/register_service.py b/liteyuki/plugins/register_service.py index f4f1b15b..5f21afe5 100644 --- a/liteyuki/plugins/register_service.py +++ b/liteyuki/plugins/register_service.py @@ -9,6 +9,7 @@ Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved @Software: PyCharm """ import json +import os.path import platform import requests @@ -52,4 +53,5 @@ def register_bot(): @liteyuki.on_before_start async def _(): - register_bot() + if not os.path.exists("data/liteyuki/liteyuki.json"): + register_bot()