text: from django.conf import settings
  SLACK_VERIFICATION_TOKEN = settings.SLACK_VERIFICATION_TOKEN
  SLACK_BOT_TOKEN = settings.SLACK_BOT_TOKEN
  
  import logging
  logging.getLogger().setLevel(logging.INFO)
  
  from pyee import EventEmitter
  from .client_urllib2 import Client
  CLIENT = Client(SLACK_BOT_TOKEN)
  
  
  class SlackEventAdapter(EventEmitter):
      def __init__(self, verification_token):
          EventEmitter.__init__(self)
          self.verification_token = verification_token
  
  slack_events_adapter = SlackEventAdapter(SLACK_VERIFICATION_TOKEN)
  
  
  # Example responder to greetings
  @slack_events_adapter.on("message")
  def handle_message(event_data):
      message = event_data["event"]
      # If the incoming message contains "hi", then respond with a "Hello" message
      if message.get("subtype") is None and "hi" in message.get('text'):
          channel = message["channel"]
          message = "Hello <@%s>! :tada:" % message["user"]
          logging.info("chat.postMessage: channel: %s text: %s" % (channel, message))
          CLIENT.chat_post_message(channel, message)
  
  # Example reaction emoji echo
  @slack_events_adapter.on("reaction_added")
  def reaction_added(event_data):
      event = event_data["event"]
      emoji = event["reaction"]
      channel = event["item"]["channel"]
      text = ":%s:" % emoji
      logging.info("chat.postMessage: channel: %s text: %s" % (channel, text))
      CLIENT.chat_post_message(channel, text)
  