Team

Purpose

In many rooms there is a concept of a team one can join. This team generally has an associated emblem that should be present on each of their messages. This class provides collections of users that share the same emblem.

Use

Teams need to be declared somewhere, and users assigned to them. How this is done varies depending on how the team works, as far as the room goes.

apply() will check a message against the registered members, applying the emblem if appropriate, and returning a string representing the contents of the message.

Requires