text: import logging
  
  from bots import config_discordbot as cfg
  from openbb_terminal.decorators import log_start_end
  from openbb_terminal.stocks.technical_analysis import finbrain_model
  
  logger = logging.getLogger(__name__)
  
  
  @log_start_end(log=logger)
  def summary_command(ticker=""):
      """Displays text of a given stocks ta summary [FinBrain API]"""
  
      # Debug
      if cfg.DEBUG:
          logger.debug("ta summary %s", ticker)
  
      # Check for argument
      if ticker == "":
          raise Exception("Stock ticker is required")
  
      report = finbrain_model.get_technical_summary_report(ticker)
      if report:
          report = "```" + report.replace(". ", ".\n") + "```"
  
      return {
          "title": "Stocks: [FinBrain API] Summary",
          "description": report,
      }
  