A simple Discord bot that provides server information through slash commands.
This bot appears "offline" in Discord because it uses HTTP interactions rather than a persistent Gateway connection. It will still respond to slash commands normally.
/test- Basic test command that responds with "hello world"/about- Information about the bot, its purpose, features, and technology stack/version- Displays the bot version, Node.js version, platform, OS release/stats- View bot statistics and performance metrics/serverip- Get the public IP address of the server this bot is running on
Create a Discord application and bot via the Discord Developer Portal and invite it to your server.
botapplications.commands
Send MessagesUse Slash Commands
-
Download the Docker image from Releases
-
Load the image:
docker load -i discord-ipbot-image.tar
- Create a
.envfile with the following variables:
APP_ID=your_app_id_here
DISCORD_TOKEN=your_bot_token_here
PUBLIC_KEY=your_public_key_here- Run the image:
docker run -d -p 3000:3000 --env-file <path_to_your_env_file> discord-ipbot:latest
- Connect your Backend to the Application:
Expose your local server to the internet. And then point the "Interactions Endpoint URL" in the Discord Developer Portal under "General Information" to your Server (e.g.,
https://your-domain-goes-here/interactions).