This commit is contained in:
CMHopeSunshine 2022-03-18 22:47:05 +08:00
parent c3599c5c02
commit bac5727c01
4 changed files with 4 additions and 6 deletions

View File

@ -38,6 +38,5 @@ MODULES_ON = {
'codeonline',
'Paimonchat',
'Genshin_Paimon',
'myb_exchange',
'check_status',
'myb_exchange'
}

View File

@ -9,7 +9,7 @@ ROLE_2_PATH = os.path.join(RES_PATH,"DIY_gacha_pool","role_2.json")
WEAPON_PATH = os.path.join(RES_PATH,"DIY_gacha_pool","weapon.json")
All_STAR_PATH = os.path.join(RES_PATH,"DIY_gacha_pool","all_star.json")
user_info={}
role_1_pool = {}
role_2_pool = {}
weapon_pool = {}
@ -40,7 +40,7 @@ with open(All_STAR_PATH,'r',encoding='UTF-8') as f:
def init_user_info(uid:str):
if not (uid in user_info):
if uid not in user_info:
user_info[uid] = {}
user_info[uid]["fate"] = 200
user_info[uid]["gacha_list"] = {}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -5,7 +5,7 @@ pytz>=2021.3
requests>=2.22.0
zhconv>=1.4.0
Pillow>=8.4.0
matplotlib>=3.2.0
matplotlib==3.2.0
numpy>=1.18.0
beautifulsoup4>=4.9.0
pygtrie>=2.0
@ -14,7 +14,6 @@ aiohttp>=3.6
openpyxl>=3.0.9
psutil>=5.4.3
PyYAML>=5.4.1
functools>=0.5
uuid>=1.30
filetype
imageio