diff --git a/index.js b/index.js index fe49db6e9f5a67b4c4603127e8e70e1a8244f091..815ac03afd8b556697796dc266d4529bcc26a603 100644 --- a/index.js +++ b/index.js @@ -53,7 +53,12 @@ app.post( '/log', function( req, res ) { content: content, status: 'publish' } ).then( function( resp ) { - res.sendStatus( 200 ); + var response = { + "response_type": "ephemeral", + "text": "Entry recorded (" + resp.id + ")\n" + resp.title.rendered + "\n\n" + resp.link + }; + + res.send( response); } ); } );