mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
commit
da10f4c7ed
@ -57,11 +57,13 @@ async def _(event: Union[GroupMessageEvent, MessageEvent], choice: str = ArgPlai
|
|||||||
if choice == '是':
|
if choice == '是':
|
||||||
user_id = str(event.user_id)
|
user_id = str(event.user_id)
|
||||||
data = load_json(Path() / 'data' / 'LittlePaimon' / 'CloudGenshin.json')
|
data = load_json(Path() / 'data' / 'LittlePaimon' / 'CloudGenshin.json')
|
||||||
|
try:
|
||||||
del data[user_id]
|
del data[user_id]
|
||||||
if scheduler.get_job(f'cloud_genshin_{user_id}'):
|
if scheduler.get_job(f'cloud_genshin_{user_id}'):
|
||||||
scheduler.remove_job(f"cloud_genshin_{user_id}")
|
scheduler.remove_job(f"cloud_genshin_{user_id}")
|
||||||
save_json(data, Path() / 'data' / 'LittlePaimon' / 'CloudGenshin.json')
|
save_json(data, Path() / 'data' / 'LittlePaimon' / 'CloudGenshin.json')
|
||||||
|
except:
|
||||||
|
await rm_cloud_ys.finish("你尚未绑定cookie! 解绑失败", at_sender=True)
|
||||||
|
|
||||||
await rm_cloud_ys.finish('token已解绑并取消自动签到~', at_sender=True)
|
await rm_cloud_ys.finish('token已解绑并取消自动签到~', at_sender=True)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user