mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-03 02:30:01 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49567aa958 | ||
|
|
a7a470066b | ||
|
|
4e3010d75e | ||
|
|
cbacd726ef | ||
|
|
58a1fc1ca0 | ||
|
|
a704f88d75 | ||
|
|
10d0ad7d47 |
+1
-1
@@ -1 +1 @@
|
|||||||
__version__: v0.0.4.0
|
__version__: v0.0.4.3
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ restart = on_command('重启', aliases={'restart'}, permission=SUPERUSER, rule=t
|
|||||||
@update_zhenxun.handle()
|
@update_zhenxun.handle()
|
||||||
async def _(bot: Bot, event: MessageEvent, state: T_State):
|
async def _(bot: Bot, event: MessageEvent, state: T_State):
|
||||||
try:
|
try:
|
||||||
error, code = await check_update(bot)
|
code, error = await check_update(bot)
|
||||||
if error:
|
if error:
|
||||||
logger.error(f'更新真寻未知错误 {error}')
|
logger.error(f'更新真寻未知错误 {error}')
|
||||||
await bot.send_private_msg(
|
await bot.send_private_msg(
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ async def check_update(bot: Bot) -> 'int, str':
|
|||||||
user_id=int(list(bot.config.superusers)[0]),
|
user_id=int(list(bot.config.superusers)[0]),
|
||||||
message=f"自动获取真寻版本成功:{latest_version},当前版本为最新版,无需更新...",
|
message=f"自动获取真寻版本成功:{latest_version},当前版本为最新版,无需更新...",
|
||||||
)
|
)
|
||||||
|
return 200, ''
|
||||||
else:
|
else:
|
||||||
logger.warning("自动获取真寻版本失败....")
|
logger.warning("自动获取真寻版本失败....")
|
||||||
await bot.send_private_msg(
|
await bot.send_private_msg(
|
||||||
|
|||||||
+3
-2
@@ -69,13 +69,14 @@
|
|||||||
"__version__",
|
"__version__",
|
||||||
"models/bilibili_sub.py",
|
"models/bilibili_sub.py",
|
||||||
"models/omega_pixiv_illusts.py",
|
"models/omega_pixiv_illusts.py",
|
||||||
|
"models/sign_group_user.py",
|
||||||
"plugins/bilibili_sub",
|
"plugins/bilibili_sub",
|
||||||
"plugins/database_scripts.py",
|
"plugins/database_scripts.py",
|
||||||
"plugins/sign_in/config.py",
|
"plugins/sign_in/config.py",
|
||||||
"plugins/sign_in/random_event.py",
|
"plugins/sign_in/random_event.py",
|
||||||
"plugins/sign_in/utils.py",
|
"plugins/sign_in/utils.py",
|
||||||
"plugins/withdraw.py",
|
"plugins/withdraw.py",
|
||||||
"resources/img/sign/sign_res"
|
"resources/img/sign"
|
||||||
],
|
],
|
||||||
"delete_file": ["plugins/nonebot_plugin_withdraw"]
|
"delete_file": ["plugins/nonebot_plugin_withdraw", "models/sigin_group_user.py"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user