All work Discord bot 2026

SwansonX Bot

A Discord bot running live in a real community. 16 commands and 12 features, talking to a game server over a single outbound WebSocket, covered by 194 tests.

Live
  • discord.js
  • WebSocket
  • Node.js
A Discord slash command menu listing the bot's commands: apply, applypanel, bug, changelog notes, leaderboard and link, each with a short description
Role
Design and build
Stack
discord.js, WebSocket, Node.js
Status
Live in a real guild

The architecture decision

The game server dials out to the bot. The bot listens and never initiates. One WebSocket connection, authenticated on the upgrade, carrying a small typed envelope in both directions.

The alternative is a game server that accepts inbound connections, which means a port to open, an attack surface to defend and a firewall rule to get wrong. Making the connection outbound removes all three at once, and it means a restart on either side heals itself instead of needing intervention.

What it does

16 commands and 12 features spanning both sides: in-game events surface in Discord, and Discord actions reach into the game. It runs in a real community with real players, which is a different quality bar from a bot in a test server.

Tested, because it talks to production

194 tests. Anything that can write to a live game server on behalf of a chat message needs to be wrong in a controlled environment first, and a bot is unusually easy to test badly: the happy path is trivial and every interesting case is a disconnect, a restart or a malformed message.

Want one of these for your business?

Tell me what the business does and what the site needs to accomplish. I will reply within 24 hours with a fixed price and a date.