Building an Autonomous Discord AI Companion with Real-Time Safety Guardrails A developer built an open-source autonomous Discord AI companion in Python that uses probabilistic skipping via discord.ext.tasks.loop to let an LLM spontaneously post messages without spamming servers. The bot employs a dual-channel design separating a front-stage #chat from a back-stage #security-room, keeping user-facing conversation natural while maintaining an auditable log for admins. The developer is now working on autonomous emoji and stamp reaction selection. Hi everyone 👋 Most Discord bots are purely reactive: they only wake up when mentioned or commanded. But I wanted an AI companion that feels truly "alive" — a buddy that spontaneously chimes in to say "Let's go on a picnic " or shares a cute thought whenever they feel like it. To make this happen without causing server spam or safety issues, I built two things in Python: Instead of firing messages on a rigid schedule like a reminder bot, the bot uses discord.ext.tasks.loop with probabilistic skipping. Letting an LLM talk autonomously can be risky. To solve this, I designed a dual-channel system : chat Front Stage security-room Back Stage This keeps the conversation natural in front of users while maintaining a clean, auditable log for server admins. Both repositories are open source on GitHub. Feel free to explore, clone, or build on them: I'm currently working on autonomous emoji and stamp reaction selections to give the companion even more life. I'd love to hear your thoughts, feedback, or any security tips from fellow Python and AI developers ⭐ on GitHub is always appreciated.