新增是否已绑定cookie检测

This commit is contained in:
nicklly 2022-08-07 00:24:51 +08:00
parent 7bf96ef670
commit 81b2977498

View File

@ -65,11 +65,6 @@ async def _(event: Union[GroupMessageEvent, MessageEvent], choice: str = ArgPlai
except: except:
await rm_cloud_ys.finish("你尚未绑定cookie 解绑失败", at_sender=True) await rm_cloud_ys.finish("你尚未绑定cookie 解绑失败", at_sender=True)
del data[user_id]
if scheduler.get_job(f'cloud_genshin_{user_id}'):
scheduler.remove_job(f"cloud_genshin_{user_id}")
save_json(data, Path() / 'data' / 'LittlePaimon' / 'CloudGenshin.json')
await rm_cloud_ys.finish('token已解绑并取消自动签到~', at_sender=True) await rm_cloud_ys.finish('token已解绑并取消自动签到~', at_sender=True)
else: else:
await rm_cloud_ys.finish() await rm_cloud_ys.finish()