]> git.cworth.org Git - zombocom-ai/commitdiff
Add bus object to default state
authorCarl Worth <cworth@cworth.org>
Fri, 23 Dec 2022 15:44:18 +0000 (07:44 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Dec 2022 19:51:10 +0000 (11:51 -0800)
Not that we're ever using the default state object these days, but
still, try to at least keep things clean around here.

index.js

index b0a115f79dd8d0e1393cde0600838203df5e19a7..6aef48c06360b598ef68eb9d5bbaa0e02efce188 100644 (file)
--- a/index.js
+++ b/index.js
@@ -106,6 +106,13 @@ fs.readFile(state_file, (err, data) => {
                },
                state: "welcome",
                level: 0
+           },
+           bus : {
+               students: {
+                   names: [],
+                   count: 0,
+               },
+               state: "welcome"
            }
        };
     else