Adding Server Checkin

- Update client handler to check IP
- Add checkin to startup
- Add acceptable commands
- Needs linux command
- Needs testing
This commit is contained in:
Logan Cusano
2023-04-30 04:42:04 -04:00
parent 95c99971a2
commit 0cefdba00f
4 changed files with 39 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ require('dotenv').config();
const fs = require('fs');
const { DebugBuilder } = require("./utilities/debugBuilder");
const deployCommands = require('./utilities/deployCommands');
const { checkIn } = require("./controllers/clientController");
var indexRouter = require('./routes/index');
var botRouter = require('./routes/bot');
@@ -143,6 +144,9 @@ discordClient.on('ready', () => {
log.DEBUG(`Starting HTTP Server`);
runHTTPServer();
log.DEBUG("Checking in with the master server")
checkIn();
});
// Setup any additional event handlers