debug and add history
This commit is contained in:
parent
6a9a5f1f98
commit
48289137e3
@ -160,8 +160,8 @@ class SacrificeCog(commands.Cog):
|
|||||||
|
|
||||||
async def save_history(self, winner_id: str, looser_id: str):
|
async def save_history(self, winner_id: str, looser_id: str):
|
||||||
history = await self.config.onevone_game_history()
|
history = await self.config.onevone_game_history()
|
||||||
winner_result = {"date": datetime.datetime.now(), "opponent": looser_id, "result": 1}
|
winner_result = {"date": datetime.datetime.now().isoformat(), "opponent": looser_id, "result": 1}
|
||||||
looser_result = {"date": datetime.datetime.now(), "opponent": winner_id, "result": 0}
|
looser_result = {"date": datetime.datetime.now().isoformat(), "opponent": winner_id, "result": 0}
|
||||||
if winner_id not in history:
|
if winner_id not in history:
|
||||||
history[winner_id] = [winner_result]
|
history[winner_id] = [winner_result]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user