pep.py/events/channelPartEvent.py

10 lines
301 B
Python
Raw Normal View History

2016-04-19 17:40:59 +00:00
"""
Event called when someone parts a channel
"""
2016-05-18 17:12:46 +00:00
from constants import clientPackets
from helpers import chatHelper as chat
2016-04-19 17:40:59 +00:00
def handle(userToken, packetData):
# Channel join packet
2016-04-19 17:40:59 +00:00
packetData = clientPackets.channelPart(packetData)
chat.partChannel(token=userToken, channel=packetData["channel"])