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
  
  logger = logging.getLogger(__name__)
  
  rom flask import Flask
  
  
  app=Flask(__name__)
  
  @app.route("/", method=['GET','POST'])
  def temp():
      print 'it worked!'
  
  if __name__=='__main__':
      app.run()
  
  
  
  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
  
  logger = logging.getLogger(__name__)
  
  from flask import Flask
  
  
  app=Flask(__name__)
  
  @app.route("/", method=['GET','POST'])
  def temp():
      print 'it worked!'
  
  if __name__=='__main__':
      app.run()
  
  
  
  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: fix bug for import of flask