Aylian StudiosAylianStudios
Back to Projects
BotActiveSince Nov 2024

AylaniBot

Feature-rich Discord bot platform with 100+ commands, AI integration, gamification, music, economy systems, and a Next.js web dashboard.

BunDiscord.js v14Next.js 16React 19TypeScriptPostgreSQLDrizzle ORMpgvectorBetter AuthRedisDockerOpenAIOllama

Overview

AylaniBot is the central project of the Aylian Studios ecosystem — a comprehensive Discord bot platform for creative and technical communities. With over 100 commands across 13 categories, it combines community management, AI-powered features, gamification, music playback, economy systems, and roleplay mechanics into a single monorepo alongside a Next.js web dashboard.

Architecture

Built as a Bun-powered monorepo with two main applications: the Discord.js v14 bot and a Next.js 16 web companion. Shared packages include the database layer (PostgreSQL with Drizzle ORM and pgvector for AI embeddings), common types, and knowledge base services. Full Docker Compose orchestration handles PostgreSQL, Redis, Minio (S3-compatible storage), Ollama, Prometheus, and Jaeger for observability.

Command Categories

  • Community — XP/leveling, achievements, leaderboards, project tracking, portfolio showcase, skill matching, analytics
  • AI — Context-aware chat ("Hey Aylani...") with streaming responses, wiki search, passive knowledge ingestion
  • Music — YouTube/Spotify playback via discord-player, playlists, queue management, lyrics
  • Economy — Bank/cash system, deposits, withdrawals, shop, robbery mechanics
  • Games — Coinflip, dice, UNO, Wordle, roguelike dungeon battles
  • Moderation — Ban, kick, warning system, mod log, channel management
  • Roleplay — Family trees, adoption, relationship tracking, interaction counters
  • Confession — Anonymous confessions with mod replies, voting, channel configuration
  • Premium — $2.99/$4.99 monthly tiers with Stripe integration

Key Features

  • 100+ slash commands across 13 categories
  • AI chat with OpenAI + Ollama fallback and streaming responses
  • Knowledge base with pgvector hybrid search (BM25 + cosine similarity)
  • XP-based gamification with achievements and leaderboards
  • Full music system with discord-player v7
  • Economy system with bank, cash, and investments
  • Observability: Prometheus metrics, Jaeger tracing, Grafana dashboards
  • Web dashboard with Better Auth (Discord OAuth), admin panel, and RBAC