Add Terraria player detection via log parsing
All checks were successful
Deploy GSM / deploy (push) Successful in 27s

- Add getTerrariaPlayers function in ssh.js for PM2 log parsing
- Support German and English join/leave messages
- Update rcon.js to use Terraria log parsing
- Add Terraria to player fetch conditions in servers.js
- Update autoshutdown.js and discordBot.js for Terraria support
- Update config path to tModLoader directory
- Add global error handlers in server.js
- Update CLAUDE.md with deployment rules and Terraria info

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-16 21:38:32 +01:00
parent c010065963
commit df390e63e4
7 changed files with 90 additions and 11 deletions

View File

@@ -9,6 +9,16 @@ import { initDiscordBot } from './services/discordBot.js';
config();
// Global error handlers to prevent crashes
process.on('uncaughtException', (err) => {
console.error('[FATAL] Uncaught Exception:', err.message);
console.error(err.stack);
});
process.on('unhandledRejection', (reason, promise) => {
console.error('[ERROR] Unhandled Promise Rejection:', reason);
});
const app = express();
const PORT = process.env.PORT || 3000;