update v0.0.5.0

This commit is contained in:
HibiKier
2021-10-03 14:24:07 +08:00
parent 87ed445a58
commit 00658cf165
182 changed files with 6439 additions and 3845 deletions
+4 -1
View File
@@ -6,14 +6,17 @@ from configs.config import IMPORT_DEFAULT_SHOP_GOODS
from nonebot import Driver
import nonebot
import time
import os
driver: Driver = nonebot.get_driver()
# 导入内置商品
# 导入内置商品 | 重新生成商店图片
@driver.on_startup
async def init_default_shop_goods():
if os.path.exists(f"{IMAGE_PATH}/shop_help.png"):
os.remove(f"{IMAGE_PATH}/shop_help.png")
if IMPORT_DEFAULT_SHOP_GOODS:
await add_goods(["好感度双倍加持卡Ⅰ", 30, "下次签到双倍好感度概率 + 10%(谁才是真命天子?)(同类商品将覆盖)"])
await add_goods(["好感度双倍加持卡Ⅱ", 150, "下次签到双倍好感度概率 + 20%(平平庸庸)(同类商品将覆盖)"])