Initiales Setup: minimaler Discord-Bot mit /ping, Docker-Deployment und README
- discord.js v14 Bot mit Slash-Command-Registry (Guild oder global) - Konfiguration über .env mit Validierung (config.js) - Dockerfile + docker-compose.yml für Portainer-Deployment - README mit Schritt-für-Schritt-Anleitung (Discord Developer Portal) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Einstiegspunkt — startet den Discord-Bot (Webserver folgt in Feature 2)
|
||||
import { startBot } from './bot/client.js';
|
||||
|
||||
process.on('unhandledRejection', (error) => {
|
||||
console.error('[main] Unhandled Rejection:', error);
|
||||
});
|
||||
|
||||
try {
|
||||
await startBot();
|
||||
} catch (error) {
|
||||
console.error('[main] Bot-Start fehlgeschlagen:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user