# Path: helpers/chatHelper.py
# def joinChannel(userID = 0, channel = "", token = None, toIRC = True, force=False):
# def partChannel(userID = 0, channel = "", token = None, toIRC = True, kick = False, force=False):
# def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True):
# def fixUsernameForBancho(username):
# def fixUsernameForIRC(username):
# def IRCConnect(username):
# def IRCDisconnect(username):
# def IRCJoinChannel(username, channel):
# def IRCPartChannel(username, channel):
# def IRCAway(username, message):


from common.log import logUtils as log
from helpers import chatHelper as chat

def handle(userToken, _):
	# Get usertoken data
	username = userToken.username

	# Remove user from users in lobby
	userToken.leaveStream("lobby")

	# Part lobby channel
	# Done automatically by the client

# Path: helpers/chatHelper.py
# def joinChannel(userID = 0, channel = "", token = None, toIRC = True, force=False):
# def partChannel(userID = 0, channel = "", token = None, toIRC = True, kick = False, force=False):
# def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True):
# def fixUsernameForBancho(username):
# def fixUsernameForIRC(username):
# def IRCConnect(username):
# def IRCDisconnect(username):
# def IRCJoinChannel(username, channel):
# def IRCPartChannel(username, channel):
# def IRCAway(username, message):


# Path: events/partLobbyEvent.py
from common.log import logUtils as log
from helpers import chatHelper as chat


def handle(userToken, _):
	# Get usertoken data
	username = userToken.username

	# Remove user from users in lobby
	userToken.leaveStream("lobby")

	# Part lobby channel
	# Done automatically by the client

	chat.partChannel(channel="#lobby", token=userToken, kick=True)