             next()
             return
         }
-//        guard token == slackToken else {
-//            try response.status(.forbidden).send("forbidden").end()
-//            next()
-//            return
-//        }
-    }catch {
+        
+        Log.info("Received \(requestDecoded)")
+        guard token == Configuration.slackToken else {
+            try response.status(.forbidden).send("forbidden").end()
+            next()
+            return
+        }
+    } catch {
         Log.error("Failed to send response \(error)")
+        
     }
     
     if let requestDecoded = requestDecoded {
         do {
             let acknowledge = "Hi @\(requestDecoded.userName!)! I see you have a question. Let's see what I can find for you."
-            try respondToSlack(response: acknowledge, requestDecode: requestDecoded)
-            try response.status(.OK).end()
+            // try respondToSlack(response: acknowledge, requestDecode: requestDecoded)
+            // try response.status(.OK).end()
         } catch {
             Log.error("Failed to send response \(error)")
         }

                    sendValue  = "I'm currently not trained for this type of question"
                }
                Log.info("text from decode \(requestDecoded.text)")
                try respondToSlack(response: sendValue, requestDecode: requestDecoded)
                try response.status(.OK).end()
            } catch {
                Log.error("Failed to send response \(error)")
            }

* limitations under the License.
**/

import Foundation
import Kitura
import KituraSys
