From 74b0d36e70c4a4d76ad50b074d3b8809fcc70553 Mon Sep 17 00:00:00 2001 From: eriemer1 <77909520+eriemer1@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:37:01 -0700 Subject: [PATCH] Create NDA.js Provides a response to the strings that will cause the `Summarize the thread so far` parser to not produce a summary. --- Parsers/NDA.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Parsers/NDA.js diff --git a/Parsers/NDA.js b/Parsers/NDA.js new file mode 100644 index 0000000..f46276b --- /dev/null +++ b/Parsers/NDA.js @@ -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);