Skip to content

Commit 91e6d1e

Browse files
added bots e12b and e22b
1 parent 6556eb6 commit 91e6d1e

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

app/Bots.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export function pick_dialog(dialog) {
2424
return act_tc_virus_e44a;
2525
else if (dialog === 'e55a')
2626
return act_tc_virus_e55a;
27+
else if (dialog === 'e12b')
28+
return act_tc_virus_e12b;
29+
else if (dialog === 'e22b')
30+
return act_tc_virus_e22b;
2731
else if (dialog === '12b')
2832
return act_tc_virus_12b;
2933
else if (dialog === '22b')
@@ -511,6 +515,72 @@ function* act_tc_virus_e55a(message, state, response, responseSystem) {
511515
}
512516
}
513517

518+
function* act_tc_virus_e12b(message, state, response, responseSystem) {
519+
if (!state.baseState) {
520+
if (message.toLowerCase().includes("post")) {
521+
yield response("You are looking for a post?");
522+
yield response("Wow, and I thought none of us is left in the city centre now that the plan is underway.");
523+
yield response("Have you secured any posts yet?", {baseState: 'post', angerLevel: 0});
524+
} else {
525+
yield responseSystem("No answer. Try another message!");
526+
}
527+
} else if (state.baseState === 'post') {
528+
if (message.toLowerCase().includes("tor") ||
529+
message.toLowerCase().includes("eis")) {
530+
yield response("OK");
531+
yield response("Then look over to the post at the fence around the small green area in front of the entrance to Kaiserfeldgasse 29");
532+
yield response("There should still be a chemical there as a backup");
533+
yield response("The code for the safe is 1122", {baseState: 'parting', angerLevel: 0});
534+
yield responseSystem("EMU Agent hat den Chat verlassen.");
535+
} else {
536+
if (!state.angerLevel)
537+
yield response("Need a rough address", {angerLevel: 1});
538+
else if (state.angerLevel === 1)
539+
yield response("What was the name of the street or square?", {angerLevel: 2});
540+
else
541+
yield response("You don't even know the street name anymore?!", {angerLevel: 0});
542+
}
543+
} else if (state.baseState === 'parting') {
544+
// yield response("Keine Antwort...", {});
545+
} else {
546+
yield response("Error: unknown state...", {});
547+
}
548+
}
549+
550+
function* act_tc_virus_e22b(message, state, response, responseSystem) {
551+
if (!state.baseState) {
552+
if (message.toLowerCase().includes("post")) {
553+
yield response("You are looking for a post?");
554+
yield response("Wow, and I thought none of us is left in the city centre now that the plan is underway.");
555+
yield response("Have you secured any posts yet?", {baseState: 'post', angerLevel: 0});
556+
} else {
557+
yield responseSystem("No answer. Try another message!");
558+
}
559+
} else if (state.baseState === 'post') {
560+
if (message.toLowerCase().includes("oper") ||
561+
message.toLowerCase().includes("hamerling") ||
562+
message.toLowerCase().includes("hammer")||
563+
message.toLowerCase().includes("corner")) {
564+
yield response("OK");
565+
yield response("Then secure the chemical at the post at the building at Kalchberggasse 10");
566+
yield response("The code for the safe is 4445");
567+
yield response("You know, on the window grill to the left of the entrance!", {baseState: 'parting', angerLevel: 0});
568+
yield responseSystem("EMU Agent hat den Chat verlassen.");
569+
} else {
570+
if (!state.angerLevel)
571+
yield response("Need a rough address", {angerLevel: 1});
572+
else if (state.angerLevel === 1)
573+
yield response("What was the name of the street or square?", {angerLevel: 2});
574+
else
575+
yield response("You don't even know the street name anymore?!", {angerLevel: 0});
576+
}
577+
} else if (state.baseState === 'parting') {
578+
// yield response("Keine Antwort...", {});
579+
} else {
580+
yield response("Error: unknown state...", {});
581+
}
582+
}
583+
514584
function* act_tc_virus_12b(message, state, response, responseSystem) {
515585
if (!state.baseState) {
516586
if (message.toLowerCase().includes("posten")) {

0 commit comments

Comments
 (0)