19 lines
497 B
Python
19 lines
497 B
Python
from objects import glob
|
|
from events import channelPartEvent
|
|
from helpers import consoleHelper
|
|
from constants import bcolors
|
|
|
|
def handle(userToken, _):
|
|
# Get usertoken data
|
|
userID = userToken.userID
|
|
username = userToken.username
|
|
|
|
# Remove user from users in lobby
|
|
glob.matches.lobbyUserPart(userID)
|
|
|
|
# Part lobby channel
|
|
channelPartEvent.partChannel(userToken, "#lobby", True)
|
|
|
|
# Console output
|
|
consoleHelper.printColored("> {} has left multiplayer lobby".format(username), bcolors.BLUE)
|