Removed express, added authentication

This commit is contained in:
2018-10-29 03:09:32 +11:00
parent 729209288d
commit 09901ca10f
4 changed files with 46 additions and 16 deletions

View File

@@ -59,6 +59,8 @@ client.on('ready', async () => {
console.log("Logged in as: " + client.user.username + " - " + client.user.id);
shared.ConnectToServer(client.user.username, process.env.SERVER_ADDRESS, process.env.SERVER_PORT, process.env.SERVER_PASS_KEY);
//ADAM updates stamina (1) and health by 1% every 2 min.
cron.schedule('*/2 * * * *', () => { //TODO: move this to Mori
console.log('Updating STAMINA every 2 min.');