# Path: foos/utils.py
# def teamName(team):


import foos.config as config
import logging
from foos import utils

logger = logging.getLogger(__name__)


class Plugin(object):
    def __init__(self, bus):
        self.bus = bus
        self.bus.subscribe(self.process_event, thread=True)
        self.players = {}

    def get_players(self, team):
        return self.players.get(team, [])

    def get_team_name(self, team):
        players = self.get_players(team)
        if len(players) > 0:
            p = " (" + ", ".join(players) + ")"
        else:
            p = ""


# Path: foos/utils.py
# def teamName(team):


# Path: plugins/bot.py
import foos.config as config
import logging
from foos import utils


logger = logging.getLogger(__name__)


class Plugin(object):
    def __init__(self, bus):
        self.bus = bus
        self.bus.subscribe(self.process_event, thread=True)
        self.players = {}

    def get_players(self, team):
        return self.players.get(team, [])

    def get_team_name(self, team):
        players = self.get_players(team)
        if len(players) > 0:
            p = " (" + ", ".join(players) + ")"
        else:
            p = ""


        return utils.teamName(team).capitalize() + p