Skip to content

Commit e60c9af

Browse files
authored
Create NDA.js (#468)
Provides a response to the strings that will cause the `Summarize the thread so far` parser to not produce a summary.
1 parent 5a37ebf commit e60c9af

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Parsers/NDA.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
activation_example:!nda
3+
regex:(!nda|!confidential)
4+
flags:gmi
5+
*/
6+
7+
//Provides a response to the strings that will cause the `Summarize the thread so far` parser to not produce a summary.
8+
9+
var message = []; //Array of potential messages to respond with
10+
message.push(":zipper_mouth_face:");
11+
message.push(":shushing_face:");
12+
message.push("I got you :fingerguns:");
13+
message.push("Lips are sealed");
14+
message.push(":spill-the-tea:");
15+
message.push(":popcorn2:");
16+
message.push(":speak_no_evil:");
17+
message.push("Request for confidentiality acknowledged. Use of !summary, !catchmeup, and !catchup have been disabled.");
18+
19+
20+
//Select one at random.
21+
var randomIndex = Math.floor(Math.random() * message.length);
22+
23+
new x_snc_slackerbot.Slacker().send_chat(current, message[randomIndex], true);

0 commit comments

Comments
 (0)