Files
DiscordBot-CloudflareWarp/.env.example
T
ginoblij 1a9dc1d676 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>
2026-09-08 01:16:32 +02:00

12 lines
444 B
Bash

# 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=