A continuously available Discord bot needs a supported runtime, durable configuration, monitored restarts and a clear network boundary. This guide shows the operating pattern without assuming a particular public hosting plan.Ein dauerhaft verfügbarer Discord-Bot benötigt eine unterstützte Laufzeit, beständige Konfiguration, überwachte Neustarts und eine klare Netzwerkgrenze. Diese Anleitung zeigt das Betriebsmuster, ohne einen bestimmten öffentlichen Hosting-Tarif vorauszusetzen.
A dedicated execution environment can provide predictable runtime and restart control. Confirm operating system, resources, access, outbound connectivity, any required inbound endpoint, support and total price before choosing a host.Eine eigene Ausführungsumgebung kann eine planbare Laufzeit und Neustartkontrolle bieten. Bestätigen Sie Betriebssystem, Ressourcen, Zugang, ausgehende Verbindung, einen möglicherweise benötigten eingehenden Endpunkt, Support und Endpreis vor der Host-Wahl.
Resource use depends on language, libraries, caches, guild and event volume, media work and external integrations. Measure the real process with headroom. A gateway-based bot normally opens outbound connections; a public webhook or dashboard additionally needs a confirmed inbound path.Der Ressourcenbedarf hängt von Sprache, Bibliotheken, Caches, Guild- und Ereignisvolumen, Medienarbeit und externen Integrationen ab. Messen Sie den echten Prozess mit Reserve. Ein Gateway-basierter Bot öffnet normalerweise ausgehende Verbindungen; ein öffentlicher Webhook oder ein Dashboard benötigt zusätzlich einen bestätigten eingehenden Weg.
sudo apt update && sudo apt upgrade. Review the proposed package changes before accepting them.Erstellen Sie nach der Verbindung über den bestätigten SSH-Weg einen Administrator ohne Root-Daueranmeldung und führen Sie Updates mit sudo apt update && sudo apt upgrade aus. Prüfen Sie die vorgeschlagenen Paketänderungen vor der Bestätigung.nodejs/npm for a JS bot, orfür einen JS-Bot, oder python3/pip/venv for a Python one.für einen Python-Bot.Clone your code (git) or upload it, install dependencies (Klonen Sie Ihren Code (git) oder laden Sie ihn hoch, installieren Sie Abhängigkeiten (npm install oroder pip install -r requirements.txt), and put your bot token in an environment variable or a), und leg Ihr Bot-Token in eine Umgebungsvariable oder eine .env file, never hard-code it. Test that it starts and connects.Datei, hardcode es nie. Testen Sie, dass er startet und verbindet.
You want the bot to restart on crash and on reboot. Two standard ways:Sie wollen, dass der Bot bei Absturz und Neustart neu startet. Zwei Standardwege:
pm2 start bot.js, then, dann pm2 startup andund pm2 save so it survives reboots. Great logs and restarts built in.damit er Neustarts übersteht. Tolle Logs und Neustarts integriert.Restart=always andund enableaktiviere it. The most robust, OS-native option.es. Die robusteste, OS-native Option.Avoid running the bot in a bareVermeiden Sie es, den Bot in einem nackten screen/tmux long-term, it won't survive a reboot. pm2 or systemd is the right tool.auf Dauer, es übersteht keinen Neustart. pm2 oder systemd ist das richtige Werkzeug.
Review logs, keep the supported operating system and runtime updated, monitor restart results and preserve a restorable copy before major changes. External health checks should verify a real bot response rather than only a running process.Prüfen Sie Logs, halten Sie unterstütztes Betriebssystem und Laufzeit aktuell, überwachen Sie Neustartergebnisse und sichern Sie vor größeren Änderungen eine wiederherstellbare Kopie. Externe Zustandsprüfungen sollten eine echte Bot-Antwort statt nur eines laufenden Prozesses bestätigen.
Many lightweight bots need modest resources, but memory and CPU depend on language, libraries, caches, traffic and integrations. Measure the real process and add restart monitoring.Viele leichte Bots benötigen wenig Ressourcen; Arbeitsspeicher und CPU hängen jedoch von Sprache, Bibliotheken, Caches, Traffic und Integrationen ab. Messen Sie den echten Prozess und überwachen Sie Neustarts.
A gateway-only Discord bot generally makes outbound connections and can work behind NAT. Public webhooks, dashboards or other inbound services need an explicitly mapped and protected path. Confirm the bot's exact integrations before deciding.Ein reiner Discord-Gateway-Bot baut gewöhnlich ausgehende Verbindungen auf und kann hinter NAT funktionieren. Öffentliche Webhooks, Dashboards oder andere eingehende Dienste benötigen einen ausdrücklich zugeordneten und geschützten Weg. Bestätigen Sie vor der Entscheidung die genauen Bot-Integrationen.
Use pm2 (pm2 startup + pm2 save) or a systemd service with Restart=always and enable it. Both auto-restart on crash and survive reboots, better than screen/tmux.Nutzen Sie pm2 (pm2 startup + pm2 save) oder einen systemd-Dienst mit Restart=always und aktivieren Sie ihn. Beide starten bei Absturz automatisch neu und überstehen Neustarts, besser als screen/tmux.
Either can work when the chosen host confirms the required runtime, architecture, resources and access. Pin supported versions and test the bot's real dependency installation.Beides kann funktionieren, wenn der gewählte Host benötigte Laufzeit, Architektur, Ressourcen und Zugang bestätigt. Fixieren Sie unterstützte Versionen und testen Sie die echte Abhängigkeitsinstallation des Bots.
Available to order in the shop; listed prices are final totals (§19 UStG). Custom configurations are confirmed in writing by email.Im Shop bestellbar; die angegebenen Preise sind Endpreise (§19 UStG). Individuelle Konfigurationen werden per E-Mail schriftlich bestätigt.
Why full root and your own kernel matter.Warum voller Root-Zugriff und Ihr eigener Kernel wichtig sind.
Why NAT is fine for bots.Warum NAT für Bots in Ordnung ist.
Run it as a systemd service, keep the clock synced with chrony, and test the kill switch before you need it.Richten Sie ihn als systemd-Service ein, halten Sie die Uhr mit chrony synchron und testen Sie den Kill-Switch vorher.
Set memory limits, add swap, pin image tags and rotate logs so Docker Compose runs safely on 1 GiB of RAM.Setzen Sie Memory-Limits, richten Sie Swap ein, pinnen Sie Image-Tags und rotieren Sie Logs, damit Compose auf 1 GiB stabil läuft.
Set up n8n with Docker Compose, dodge the NAT IPv4 webhook trap, and fix the issues that bite later.Richten Sie n8n mit Docker Compose ein, umgehen Sie die NAT-IPv4-Webhook-Falle und beheben Sie die Probleme, die später zuschlagen.
Prices are final totals; no VAT is shown (§19 UStG). Need something the shop does not list? Email us for a written offer.Alle Preise sind Endpreise ohne ausgewiesene USt. (§19 UStG). Sie brauchen etwas, das nicht im Shop steht? Schreiben Sie uns für ein schriftliches Angebot.
US locations available: Dallas, TX and Charlotte, NC for VPS and game servers. Order a VPS → · Order a game server → · Web hosting →
Also live from Germany (EU):US-Standorte verfügbar: Dallas, TX und Charlotte, NC für VPS und Gameserver. VPS bestellen → · Gameserver bestellen → · Webhosting →
Ebenfalls verfügbar aus Deutschland (EU):
One-click apps, each isolated with its own hostname: Uptime Kuma, Vaultwarden, Gitea, Nextcloud, Ghost, n8n (waitlist) · Managed automation · Managed setupOne-Click-Apps, jeweils isoliert mit eigenem Hostnamen: Uptime Kuma, Vaultwarden, Gitea, Nextcloud, Ghost, n8n (Warteliste) · Managed Automation · Managed Setup