Lain Discord Bot (Rust)
A high-performance, asynchronous Discord bot written in Rust, featuring targeted message delivery and strict RBAC (Role-Based Access Control) for administrators.
Why I built it
Most Discord bots are written in Python or Node.js, making them prone to memory leaks and high latency under load. I rebuilt a conceptual bot in Rust to ensure memory safety and immediate execution via compiled binaries.
Architecture & decisions
Powered by Rust and the Discord API. The bot implements a strict permission hierarchy, granting raw command execution only to predefined user IDs. It parses chat streams in real-time, matching patterns to trigger specific, hardcoded payloads.
Key features
- Asynchronous event handling via Rust
- Hardcoded Role-Based Access Control (RBAC)
- Low-latency message parsing and routing
Related projects
Rust Telegram Watchlist Orchestrator
An asynchronous Telegram bot engineered in Rust for managing localized media watchlists, featuring randomized suggestion engines and flat-file state persistence.
- Rust
- Teloxide
- Tokio
- +2
Yt-dlp & FFmpeg Telegram Media Archiver Bot
An asynchronous Rust-based Telegram bot engine that orchestrates yt-dlp and FFmpeg subprocesses to securely download, compress, and serve media from X (Twitter) and YouTube.
- Rust
- Shell
- Tokio
- +5
Telegram Lein Bot
An automated Telegram assistant equipped with custom command trees and a competitive, state-tracking trivia module.
- Python
- Aiogram
- Telegram API
Need something similar?
I can build a system like this for you, too.
Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.