- add href on github button and username on discord button
This commit is contained in:
Kum1ta
2024-09-23 15:23:41 +02:00
parent cb2a67c40d
commit 3a6887e722
2 changed files with 31 additions and 7 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/09/20 00:16:57 by edbernar #+# #+# #
# Updated: 2024/09/23 14:37:28 by edbernar ### ########.fr #
# Updated: 2024/09/23 15:08:37 by edbernar ### ########.fr #
# #
# **************************************************************************** #
@ -28,6 +28,6 @@ def getUserInfo(socket, content):
return
online = True if user['id'] in socket.onlinePlayers else False
print("User is online: ", online)
socket.sync_send({"type":"user_info", "content":{'username': user['username'], 'pfp': user['pfp'], 'banner': user['banner'], 'id': user['id'], 'online': online}})
socket.sync_send({"type":"user_info", "content":{'username': user['username'], 'pfp': user['pfp'], 'banner': user['banner'], 'id': user['id'], 'online': online, 'github': user['github_link'], 'discord': user['discord_username']}})
except Exception as e:
socket.sendError("invalid request", 9005, e)