From: Carl Worth <cworth@cworth.org>
Date: Fri, 23 Dec 2022 15:44:18 +0000 (-0800)
Subject: Add bus object to default state
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=99fdf6accc38514ec375f05912741b7d4d2ecef6;p=zombocom-ai

Add bus object to default state

Not that we're ever using the default state object these days, but
still, try to at least keep things clean around here.
---

diff --git a/index.js b/index.js
index b0a115f..6aef48c 100644
--- 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