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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user