@responder(pattern="^announce (?P<message>.+)$", form="announce <message>", help="Send a message to your team mates")
def announce(conversation, message):
  agent = SupportAgent( conversation.buddy )
  message = "<b>Announcement from %s</b> ::: %s" % (agent.name, message)
  told = 0
  for team in agent.teams:
    for otherAgent in team.agents:
      if otherAgent is agent: continue
      otherAgent.tell(message)
      told += 1
  if told:
    agent.tell('Your announcement has been sent to your %d team mates' % told)
  else:
    agent.tell('You do not have any team mates.')
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/responders/support.py/announce/original