A simple discord bot that checks your status, used in my website to check if I am online or not.
- Create a bot at the developer portal
- Invite the bot to a server where you also are in
- change the values in .env.example and then save as .env
- run
npm i
to install all dependencies - run
node index.js
to start the app, check if it's working with localhost:PORT/api/status to use the api outside of your local network you will have to forward the port in your router or use something like Cloudflare Tunnels
docker-compose.yml:
version: '3.8'
services:
app:
image: ghcr.io/skogisab/status-checker:latest
ports:
- "PORT:PORT" # CHANGE PORT TO YOUR ACTUAL PORT
environment:
- TOKEN=your-discord-bot-token
- GUILD_ID=your-guild-id
- USER_ID=your-user-id
- PORT=your-port