MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / dialogueTest

Function dialogueTest

modules/learninal/learninal.js:25–38  ·  view source on GitHub ↗
(test, error)

Source from the content-addressed store, hash-verified

23 var badFaces = ["angry","angry2","angry3","angry4","no","no_2"];
24
25 var dialogueTest = function(test, error) {
26 return {
27 "test": function(item) {
28 if(test.call(this,item)) {
29 this.emote("love");
30 return true;
31 } else {
32 this.emote(_.sample(badFaces));
33 this.speak(error);
34 return false;
35 }
36 }
37 }
38 }
39
40 tutorialArrays = [
41 {

Callers 2

learninal.jsFile · 0.85
botDialogues.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected