pep.py/events/channelPartEvent.py

10 lines
301 B
Python

"""
Event called when someone parts a channel
"""
from constants import clientPackets
from helpers import chatHelper as chat
def handle(userToken, packetData):
# Channel join packet
packetData = clientPackets.channelPart(packetData)
chat.partChannel(token=userToken, channel=packetData["channel"])