remove unused parts of the code

This commit is contained in:
w 2025-06-03 23:23:42 -03:00
parent 3a09b481e5
commit 3de6a9ac3d
2 changed files with 2 additions and 10 deletions

View file

@ -60,9 +60,6 @@ def delete_player(username: str) -> bool:
) )
user = CURSOR.fetchone() user = CURSOR.fetchone()
if not user:
return False # No such user
user_id = user[0] user_id = user[0]
# Delete pulls # Delete pulls

View file

@ -157,13 +157,8 @@ def delete_account(author: str) -> BotResponse:
} }
def confirm_delete(author: str) -> BotResponse: def confirm_delete(author: str) -> BotResponse:
success = delete_player(author)
delete_player(author)
if not success:
return {
'message':f'@{author} ❌ No account found to delete. Maybe its already gone?',
'attachment_urls': None
}
return { return {
'message':f'{author} 🧼 Your account and all your cards have been deleted. RIP your gacha history 🕊️✨', 'message':f'{author} 🧼 Your account and all your cards have been deleted. RIP your gacha history 🕊️✨',