Site
- add href on github button and username on discord button
This commit is contained in:
@ -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)
|
Reference in New Issue
Block a user