August 20, 2026 · The Minely team
How to build a welcome bot with AI (placeholders, rules gate)
The welcome message is your server's first impression, and most of them are bad — a gray "x joined" nobody reads. A good welcome bot greets warmly, points at the rules, and quietly verifies the new arrival is human. It is also the easiest bot to build well, which makes it the perfect first project.
What a welcome bot actually is
A welcome bot greets new members in a channel you choose, with a configurable message that supports placeholders like {user}, {server}, and {count}. An optional rules gate keeps new members from speaking until they acknowledge the rules, filtering out drive-by spam accounts.
How it works under the hood
The guild-member-add event fires with the new member; the bot formats the welcome message with the placeholders and posts it, optionally pinging the member. The rules gate assigns an unverified role on join that sees only the rules channel; a button or reaction there grants the verified role and unlocks the server. A leave log covers the other direction so you can see churn at a glance.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a welcome bot that greets new members in a channel with {user} and {server} placeholders, a rules acknowledgment gate before speaking, and a leave log
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Wire the join event and the placeholder formatter.
- Add per-guild welcome channel and message config.
- Build the rules gate with the unverified-to-verified flow.
- Add the leave log with account ages.
- Polish with welcome images and a test command.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
Keep the welcome message to two lines: a greeting and where to go next. Long welcomes get ignored. The rules gate should be one click — every extra step costs real members along with the bots.
Tips that save you a rebuild
- Mention the member in the greeting; it measurably increases first messages.
- Show the member count; "you are member 1,204" makes people stay.
- Log account age on join; raids are always accounts from yesterday.
- Give yourself a /welcome test command or you will never see your own greeting.
Questions people ask
Can I have image welcome cards?
Yes — render the avatar and name onto a card with an image library, with text fallback for accessibility.
What about DM welcomes?
A second, longer DM with the real onboarding (channels, roles, how to get help) while the channel greeting stays short.
How do I stop welcome spam in raids?
Rate-limit greetings during join floods and rely on the rules gate to hold the line.
If you can describe it, you can ship it. Take the prompt from this guide, tweak one detail, and build your version tonight.
