🐛 修复一些功能BUG

This commit is contained in:
Wuyi无疑 2023-03-23 00:47:22 +08:00
parent 537aa476eb
commit b54ab5cec5
6 changed files with 18 additions and 7 deletions

1
.gitignore vendored
View File

@ -682,6 +682,7 @@ textMap.json
event.jpg
gacha.jpg
help.png
review.json
### Debug ###
testnb2/

View File

@ -47,7 +47,7 @@ async def unsub_ann_(bot: Bot, ev: Event):
await bot.send(unsub_ann(bot.bot_id, ev.group_id))
@SV('原神公告红点').on_fullmatch('取消原神公告红点')
@SV('原神公告红点').on_fullmatch(('取消原神公告红点', '清除原神公告红点'))
async def consume_remind_(bot: Bot, ev: Event):
uid = await get_uid(bot, ev)
if uid is None:

View File

@ -35,7 +35,7 @@ async def send_refresh_gacha_info(bot: Bot, ev: Event):
await bot.send(im)
@SV('抽卡记录').on_fullmatch(('导出抽卡记录'))
@SV('导出抽卡记录').on_fullmatch(('导出抽卡记录'))
async def send_export_gacha_info(bot: Bot, ev: Event):
await bot.logger.info('开始执行[导出抽卡记录]')
sqla = get_sqla(ev.bot_id)

View File

@ -56,7 +56,7 @@ async def export_gachalogs(uid: str) -> dict:
'export_app': 'GenshinUID',
'export_app_version': '4.0',
'export_timestamp': round(now.timestamp()),
'uigf_version': '2.2',
'uigf_version': 'v2.2',
},
'list': [],
}

View File

@ -1,4 +1,6 @@
history_data = {
'3.6': {'9': '1044', '10': '1045', '11': '1058', '12': '1059'},
'3.5': {'9': '1044', '10': '1045', '11': '1056', '12': '1057'},
'3.4': {'9': '1044', '10': '1045', '11': '1054', '12': '1055'},
'3.3': {'9': '1044', '10': '1045', '11': '1052', '12': '1053'},
'3.2': {'9': '1044', '10': '1045', '11': '1050', '12': '1051'},

View File

@ -18,15 +18,23 @@ async def check_msg():
update_log = await restart_message()
if update_log == {}:
return
if update_log['bot_id'] in gss.active_bot:
bot = gss.active_bot[update_log['bot_id']]
for BOT in gss.active_bot:
bot = gss.active_bot[BOT]
if update_log['send_type'] == 'group':
await bot.target_send(
update_log['msg'], 'group', update_log['send_to']
update_log['msg'],
'group',
update_log['send_to'],
update_log['bot_id'],
'',
)
else:
await bot.target_send(
update_log['msg'], 'direct', update_log['send_to']
update_log['msg'],
'direct',
update_log['send_to'],
update_log['bot_id'],
'',
)
logger.info('遗留信息检查完毕!')
except Exception: