mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
新增是否已绑定cookie检测
This commit is contained in:
parent
7bf96ef670
commit
81b2977498
@ -65,11 +65,6 @@ async def _(event: Union[GroupMessageEvent, MessageEvent], choice: str = ArgPlai
|
||||
except:
|
||||
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)
|
||||
else:
|
||||
await rm_cloud_ys.finish()
|
||||
|
Loading…
Reference in New Issue
Block a user