Initial Discord bot in Docker behind a per-container Cloudflare WARP tunnel
- discord.js 14 bot with /ping and /warp, periodic WARP egress-IP logging - Dockerfile: node:22-bookworm-slim + cloudflare-warp 2026.7.1377.0 (.deb) - entrypoint boots dbus/warp-svc, registers, connects, verifies warp=on - docker-compose with NET_ADMIN, /dev/net/tun, sysctls, healthcheck - deploy script, README, CHANGELOG, lockfile generated inside Docker Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Copy this file to .env and fill in your values. .env is git-ignored.
|
||||
|
||||
# Discord bot token (Discord Developer Portal -> Bot -> Token)
|
||||
DISCORD_TOKEN=your-bot-token-here
|
||||
|
||||
# How often (seconds) the bot re-checks the WARP tunnel and logs the Cloudflare IP
|
||||
WARP_CHECK_INTERVAL=60
|
||||
|
||||
# Optional: register slash commands only in this guild for instant availability.
|
||||
# Leave empty to register them globally (can take up to an hour to appear).
|
||||
GUILD_ID=
|
||||
Reference in New Issue
Block a user