Add help system, deployment docs, and improve setup

Introduces a new interactive help command with button navigation, adds a detailed DEPLOYMENT.md guide, and improves server setup validation and error handling. Updates command registration to include all 9 games, adds version reporting, enhances Docker deployment with a multi-platform script, and removes local .env files from the repo. Also refactors bot startup for better diagnostics and graceful shutdown.
This commit is contained in:
VinceC
2025-07-13 04:00:39 -05:00
parent 6b904d765d
commit a8e836fd5b
17 changed files with 1874 additions and 132 deletions

View File

@@ -23,6 +23,15 @@ class NotificationService {
console.log(`Notification service listening on port ${port}`);
resolve();
});
this.server.on('error', (error) => {
if (error.code === 'EADDRINUSE') {
console.log(`Port ${port} is in use, trying port ${port + 1}`);
this.start(port + 1).then(resolve).catch(reject);
} else {
reject(error);
}
});
} catch (error) {
reject(error);
}