remove unused parts of the code
This commit is contained in:
parent
3a09b481e5
commit
3de6a9ac3d
2 changed files with 2 additions and 10 deletions
|
@ -60,9 +60,6 @@ def delete_player(username: str) -> bool:
|
|||
)
|
||||
user = CURSOR.fetchone()
|
||||
|
||||
if not user:
|
||||
return False # No such user
|
||||
|
||||
user_id = user[0]
|
||||
|
||||
# Delete pulls
|
||||
|
|
|
@ -157,13 +157,8 @@ def delete_account(author: str) -> BotResponse:
|
|||
}
|
||||
|
||||
def confirm_delete(author: str) -> BotResponse:
|
||||
success = delete_player(author)
|
||||
|
||||
if not success:
|
||||
return {
|
||||
'message':f'@{author} ❌ No account found to delete. Maybe it’s already gone?',
|
||||
'attachment_urls': None
|
||||
}
|
||||
delete_player(author)
|
||||
|
||||
return {
|
||||
'message':f'{author} 🧼 Your account and all your cards have been deleted. RIP your gacha history 🕊️✨',
|
||||
|
|
Loading…
Add table
Reference in a new issue