Discord TPS
An add-on for [Discord Chat Mod](https://www.curseforge.com/minecraft/mc-mods/discord-chat-mod) that keeps a live server status message pinned in the Discord channel of your choice.
What it shows
- 🟢🟡🟠🔴 Health indicator based on TPS
- TPS and MSPT
- Online players / max players
- Server uptime
- "Updated X seconds ago" (Discord timestamp)
When the server stops, the message switches to 🔴 Server offline.
Features
- Updates every second by default (configurable).
- Uses the bot already connected by Discord Chat Mod: no second bot, no extra token.
- Always edits the same message, even after restarts. If it is deleted, a new one is created and pinned.
- Never queues updates: if Discord is slow, it simply skips a beat instead of piling up requests.
Setup
1. Install Discord Chat Mod and this mod on the server (nothing needed on clients).
2. Start the server once, then open `world/serverconfig/discordtps-server.toml`.
3. Set `salon` to your channel ID (Developer Mode > right-click the channel > Copy Channel ID).
4. Give the bot View Channel, Send Messages and Manage Messages (to pin) in that channel.
5. Restart.
Options: `intervalleSecondes` (update interval), `titre` (message title).
> Discord allows about 5 edits per 5 seconds per channel. 1 second works, but use a dedicated channel; if you see rate-limit warnings, set the interval to 2–3 seconds.
Credits
- Discord Chat Mod by denisnumb: all Discord integration comes from his mod. This is an unofficial add-on, not affiliated with him.