old_contents: #!/usr/bin/env python
  
  import logging
  import os
  
  from beepboop import resourcer
  from beepboop import bot_manager
  
  from slack_bot import SlackBot
  from slack_bot import spawn_bot
  
  from aylienapiclient import textapi
  client = textapi.Client("a19bb245", "2623b77754833e2711998a0b0bdad9db")
  
  
  logger = logging.getLogger(__name__)
  
  
  if __name__ == "__main__":
  
      log_level = os.getenv("LOG_LEVEL", "INFO")
      logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', level=log_level)
  
      slack_token = os.getenv("SLACK_TOKEN", "")
      logging.info("token: {}".format(slack_token))
  
      if slack_token == "":
          logging.info("SLACK_TOKEN env var not set, expecting token to be provided by Resourcer events")
          slack_token = None
          botManager = bot_manager.BotManager(spawn_bot)
          res = resourcer.Resourcer(botManager)
          res.start()
      else:
          # only want to run a single instance of the bot in dev mode
          bot = SlackBot(slack_token)
          bot.start({})
  
new_contents: #!/usr/bin/env python
  
  import logging
  import os
  
  from beepboop import resourcer
  from beepboop import bot_manager
  
  from slack_bot import SlackBot
  from slack_bot import spawn_bot
  
  from aylienapiclient import textapi
  import Algorithmia
  
  
  logger = logging.getLogger(__name__)
  
  
  if __name__ == "__main__":
  
      log_level = os.getenv("LOG_LEVEL", "INFO")
      logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', level=log_level)
  
      slack_token = os.getenv("SLACK_TOKEN", "")
      logging.info("token: {}".format(slack_token))
  
      if slack_token == "":
          logging.info("SLACK_TOKEN env var not set, expecting token to be provided by Resourcer events")
          slack_token = None
          botManager = bot_manager.BotManager(spawn_bot)
          res = resourcer.Resourcer(botManager)
          res.start()
      else:
          # only want to run a single instance of the bot in dev mode
          bot = SlackBot(slack_token)
          bot.start({})
  
subject: Update app.py