WeBuildCrew
🎮 Web3 · Community

GuardBot — Discord Community Bot

A Discord bot pairing wallet/role verification with smart auto-moderation and engagement loops — growing a community to 25,000 safely.

Timeline
2 weeks
Role
Bot development
Team
Lead engineer
Year
2025
Node.jsTypeScriptdiscord.jsPostgreSQL
🎮
NFT Project

25,000

Members

−90%

Spam

24/7

Moderation

Client goals

  • Keep the server safe
  • Verify holders by wallet
  • Drive engagement

Project overview

GuardBot keeps a Web3 community safe and active — verifying holders, moderating automatically, and running engagement loops that grow membership.

The client problem

Our solution

We paired wallet/role verification with smart auto-moderation, then layered games and rewards that keep members coming back — so the bot does the heavy lifting.

What we built

Features

🔐

Wallet verification

Role gating by on-chain holdings.

🛡️

Auto-moderation

Spam, scam-link and raid protection.

🎉

Engagement

Games, XP and rewards.

📊

Analytics

Growth and activity insights.

Under the hood

Technical code

app/api/projects/route.ts
TypeScript
import { db } from "@/lib/db"; export async function GET() {  const items = await db.project.findMany({    where: { status: "active" },    select: { id: true, name: true, updatedAt: true },    orderBy: { updatedAt: "desc" },    take: 50,  });  return Response.json(items);}

Integrations

APIs & services

Discord API

Roles, slash commands and events.

Web3 RPC

On-chain holdings verification.

PostgreSQL

Member and XP records.

Process

Development workflow

  1. 1

    Discovery

    Goals, users and success metrics defined on a free call.

  2. 2

    Planning

    Fixed scope, milestone plan and timeline in writing.

  3. 3

    UI/UX design

    Wireframes and a clean, modern design system.

  4. 4

    Backend setup

    Database schema, auth and core services.

  5. 5

    API development

    Typed, documented endpoints and integrations.

  6. 6

    Frontend

    Responsive, accessible UI wired to the API.

  7. 7

    Testing

    QA across devices plus performance & security checks.

  8. 8

    Deployment

    CI/CD, monitoring and a smooth production launch.

  9. 9

    Support

    Ongoing maintenance, updates and new features.

Speed & SEO

Performance & SEO

Performance

  • Server-side & static rendering for instant first paint
  • Image optimisation and lazy loading
  • Code-splitting and route-level prefetching
  • Edge/CDN caching with smart revalidation
  • Green Core Web Vitals (LCP, CLS, INP)
  • Database indexing and query tuning

SEO

  • Per-page metadata, canonical URLs and Open Graph
  • Structured data (JSON-LD) for rich results
  • Programmatic sitemap & robots
  • Semantic, accessible HTML
  • Clean, descriptive slug URLs

Built secure

Security

🔒Session-based auth with role permissions
🔒Server-side authorization on every protected route
🔒Input validation (Zod) on client and server
🔒Secure payments via hosted Checkout (no card data stored)
🔒Rate limiting and abuse protection
🔒Encrypted secrets and least-privilege access

Outcome

Results & impact

25,000

Members

−90%

Spam

24/7

Moderation

GuardBot helped grow the server to 25,000 members while cutting spam by ~90% with always-on moderation.