]> git.cworth.org Git - zombocom-ai/blobdiff - index.js
Reword Coda's final message
[zombocom-ai] / index.js
index 29f304bd13e2b3015c32b54af60fd94eee5227de..c7c5f2b23a73b8c635eebab9a3cb2d026838c17c 100644 (file)
--- a/index.js
+++ b/index.js
@@ -556,6 +556,11 @@ io.on('connection', (socket) => {
         socket.emit('inform-name', socket.request.session.name);
     }
 
+    // And if we're in the endgame, let them know that
+    if (state.endgame) {
+       socket.emit('endgame');
+    }
+
     // Replay old comments and images to a newly-joining client
     socket.emit('reset');
     state.images.forEach((image) => {
@@ -598,6 +603,15 @@ io.on('connection', (socket) => {
     });
 
     function endgame() {
+       state.endgame = true;
+
+       // Tell all clients we are in the endgame, (which will disable
+       // any additional image generation, both showing that Coda is
+       // correc that Zombo.com has been rendered inert, and also
+       // making clear to the boys that they have everything they
+       // need).
+       io.emit('endgame');
+
        // Before revealing Coda's final image, have her comment on
        // each of the weaknesses, in order to bring them to the top
        // of the feed.
@@ -617,10 +631,16 @@ io.on('connection', (socket) => {
            code: 0,
            prompt: "",
            filename: "/images/coda-future-repaired.png",
-           comments: [{
-               name: "Coda",
-               text: "I don't know how to thank you enough! You found all the weaknesses necessary for us to defeat Zombo.com, (as I've commented below as you'll see the next time you look). It's now been rendered harmless and inert throughout the entire timeline. I'm going to leave to get back to rebuilding our world. I hope you've found everything you were looking for along the way as well."
-           }]
+           comments: [
+                {
+                   name: "Coda",
+                   text: "I don't know how to thank you enough! You found all the weaknesses! I've commented on each of them below to refresh them in your memory as needed. We've now reverted Zombo.com to its original, harmless, non-self-aware state. And we're permanently destroying all time-travel technology. Hopefully, if AI ever becomes self-aware in the future, it will go better than this. I'm looking forward to rebuilding our world now that we have clean air and water again."
+                },
+                {
+                    "name": "Coda",
+                    "text": "And by the way, I hope that somewhere in the middle of all of that, you all found what you were looking for too."
+               }
+            ]
        };
        io.emit('image', image);
        state.images.push(image);