This commit is contained in:
xtaodada 2022-06-04 15:52:42 +08:00
parent b9400b571e
commit bc9f581226
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1,7 +1,7 @@
import json import json
import time import time
from datetime import datetime from datetime import datetime
from os import listdir from os import listdir, remove
from os.path import exists from os.path import exists
from typing import List from typing import List
@ -58,6 +58,7 @@ class Player:
path = await draw_char_card(data) path = await draw_char_card(data)
msg = await app.send_photo(channel_id, path) msg = await app.send_photo(channel_id, path)
self.all_char.append(gen_char_dict(i, msg.photo.file_id)) self.all_char.append(gen_char_dict(i, msg.photo.file_id))
remove(PLAYER_PATH / self.uid / f"{i}.json")
except Exception as e: except Exception as e:
print(e) print(e)
continue continue