From c1ee1b50ab9cc243f744e709726dc9f4d10e1f5b Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 7 May 2023 16:39:48 +0200 Subject: [PATCH] Added config check and updated version to 2.3 --- yusarin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yusarin.py b/yusarin.py index 0b72bae..429f640 100644 --- a/yusarin.py +++ b/yusarin.py @@ -7,15 +7,16 @@ except Exception as exp: ) exit() -from os import getpid +from os import getpid, path from functions import * pid = getpid() -version = 2.2 +version = 2.3 if ( - loadJson("config.json")["owner"] == "SET-OWNER-ID" + not path.exists("config.json") + or loadJson("config.json")["owner"] == "SET-OWNER-ID" or loadJson("config.json")["bot_token"] == "SET-BOT-TOKEN" ): print(