This example is not far from the echo example that AWS provide, but in Scala.
It does a little bit more, in that it gives a world clock via /time
:
sbt assembly
...and deploy the JAR to your Lambda environment. The function name is: example.Slack::time
I've written a blog post on this.