Z-Bot Discord AI Assistant · mniz.xyz
mniz.xyz
~/projects
← Projects ✏ Edit
● Active 1 min read #discord#python#ai#llm

Z-Bot Discord AI Assistant

AI-powered Discord bot combining language models with persistent memory, custom personality, and tool use.


Z-Bot is an advanced Discord AI assistant built with Python and the OpenAI API. It goes beyond a basic chatbot with persistent per-user memory, server-aware context, and dozens of custom tool integrations.

Features

  • Persistent memory — remembers context per user across conversations with automatic custom memory ‘significance’ values
  • Custom personalities — consistent character maintained even across long sessions and tool calls, with the ability to cerate your own personalities, both server and user side
  • Tool use — web search, URL fetching, code execution, server and user moderation, image generation, and so much more
  • Rate limiting — per-user token bucket prevents API abuse
  • Multi-server aware — adapts to server context and rules
  • Always safe — all tools the models can call, like the timeout_user tool, check the requesting user’s permissions before processing

Architecture

  • Discord.py for the bot interface
  • OpenAI API for language model calls, TTS, STT, image, and moderation
  • SQLite for conversation memory storage
  • Python asyncio throughout for non-blocking I/O

Status

Actively maintained and running in multiple over 70 Discord servers and 7k users, as of late 2025.