Skip to content

Commit

Permalink
Create NDA.js
Browse files Browse the repository at this point in the history
Provides a response to the strings that will cause the `Summarize the thread so far` parser to not produce a summary.
  • Loading branch information
eriemer1 authored Nov 19, 2024
1 parent 5a37ebf commit 74b0d36
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Parsers/NDA.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
activation_example:!nda
regex:(!nda|!confidential)
flags:gmi
*/

//Provides a response to the strings that will cause the `Summarize the thread so far` parser to not produce a summary.

var message = []; //Array of potential messages to respond with
message.push(":zipper_mouth_face:");
message.push(":shushing_face:");
message.push("I got you :fingerguns:");
message.push("Lips are sealed");
message.push(":spill-the-tea:");
message.push(":popcorn2:");
message.push(":speak_no_evil:");
message.push("Request for confidentiality acknowledged. Use of !summary, !catchmeup, and !catchup have been disabled.");


//Select one at random.
var randomIndex = Math.floor(Math.random() * message.length);

new x_snc_slackerbot.Slacker().send_chat(current, message[randomIndex], true);

0 comments on commit 74b0d36

Please sign in to comment.