Skip to content

Commit

Permalink
Update Send an affirmation.js (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcooper72 authored Oct 3, 2023
1 parent 98d8672 commit ed01f59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Parsers/Send an affirmation.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/*
activation_example:!affirm
regex:!affirm, !affirm @user
regex:!affirm
flags:g
*/


var rm = new sn_ws.RESTMessageV2();
rm.setHttpMethod('GET');
rm.setEndpoint('https://www.affirmations.dev/');
Expand All @@ -14,4 +13,4 @@ var body = response.getBody();
var payload = JSON.parse(body);
var msg = payload.affirmation;

var sendIt = new x_snc_slackerbot.Slacker().send_chat(current, msg, false);
var sendIt = new x_snc_slackerbot.Slacker().send_chat(current, msg, false);

0 comments on commit ed01f59

Please sign in to comment.