11 lines
375 B
Python
11 lines
375 B
Python
from helpers import userHelper
|
|
from constants import clientPackets
|
|
|
|
def handle(userToken, packetData):
|
|
# Friend remove packet
|
|
packetData = clientPackets.addRemoveFriend(packetData)
|
|
userHelper.removeFriend(userToken.userID, packetData["friendID"])
|
|
|
|
# Console output
|
|
print("> {} have removed {} from their friends".format(userToken.username, str(packetData["friendID"])))
|