pep.py/events/friendRemoveEvent.py
2016-05-18 19:12:46 +02:00

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"])))