سوفیا یک ربات مدیریت حرفهای و هوشمند برای گروههای روبیکا است که با Python نوشته شده و امکانات گستردهای برای مدیریت، سرگرمی و نظمدهی به گروه فراهم میکند.
- تشخیص و حذف خودکار پیامهای اسپم، لینک، آیدی، فوروارد، متادیتا و کدهای مخرب
- سیستم اخطار (ectart) با تعداد قابل تنظیم
- بن خودکار با قابلیت بن بیصدا
- فیلترهای سفارشی کلمات ممنوع
- پشتیبانی از انواع پیام: عکس، ویدیو، صدا، ویس، فایل، آرشیو، نظرسنجی، لوکیشن و ...
- سیستم سطحبندی کاربران (مالک، ادمین، مدیر، معاف، ساکت و ...)
- فونتساز فارسی (۱۰ استایل) و انگلیسی (۸ استایل)
- جوک، داستان، شعر (سعدی، حافظ، مولوی، فردوسی، شهریار، نظامی)
- فال، چیستان، انگیزشی، دیالوگ، چالش، حدیث، آیه
- شانس، تاس، سنگکاغذقیچی
- آبوهوا، ساعت، تاریخ (شمسی / میلادی / هجری / عبری)
- اوقات شرعی، تاریخ تولد، اطلاعات ستارهشناسی
- دانلود پست و استوری روبینو
- هوش مصنوعی، ارز دیجیتال، گیفساز
- ثبت آمار کامل پیامهای هر کاربر در گروه
- پنل مدیریت مرکزی با دکمههای شیشهای
- ارسال همگانی به کاربران و گروهها
- گزارش پینگ و وضعیت ربات
- پایگاه داده SQLite با قابلیت WAL
- ذخیره async و sync
- مهاجرت خودکار از فایلهای JSON قدیمی
├── main.py # هسته اصلی ربات و هندلرهای پیام
├── defalts.py # تنظیمات پیشفرض گروهها
├── get_type.py # تشخیص نوع پیام و نوع کاربر
├── font.py # استایلهای فونت فارسی و انگلیسی
├── SaveAndLoad.py # مدیریت پایگاه داده SQLite
├── translate.py # جداول ترجمه فارسی ↔ انگلیسی
├── text_get.py # متون ثابت و پیامهای ربات
├── fosh.py # لیست کلمات فیلتر
└── all_data.json # دادههای استاتیک محتوا
git clone https://github.com/soroosh185/sophia_bot_rubika.gitcd sophia_bot_rubikapip install rubka aiohttp httpx jdatetime hijridate convertdate pytz- در فایل
main.pyمقدارTokenرا با توکن ربات خود جایگزین کنید:Token = "توکن_ربات_شما"
- ربات را اجرا کنید:
python main.py
- ربات را به گروه اضافه کنید، ادمین کامل بدهید، سپس در گروه بنویسید: فعال
- کانال رسمی:
@sophia_bot_rubika - راهنما و آموزش:
@help_sophia
این پروژه تحت لایسنس MIT منتشر شده است.
Sophia is a professional, feature-rich group management bot for the Rubika messaging platform, written in Python. It provides powerful tools for moderation, entertainment, and group organization.
- Auto-detection and deletion of spam, links, user IDs, forwarded messages, metadata, and malicious code patterns
- Configurable warning (ectart) system before banning
- Auto-ban with optional silent ban mode
- Custom word filters
- Handles all message types: photo, video, audio, voice, document, archive, poll, location, and more
- Multi-level user roles: owner, admin, manager, exempt, silent, blacklisted, and more
- Font styler — 10 Persian styles & 8 English font variants
- Jokes, stories, poems (Saadi, Hafez, Rumi, Ferdowsi, Shahryar, Nezami)
- Fortune telling, riddles, motivational quotes, dialogues, challenges, hadiths, Quran verses
- Luck meter, dice, rock-paper-scissors
- Weather, clock, date (Shamsi / Gregorian / Hijri / Hebrew)
- Prayer times, birthday info, astrological data
- Rubino post & story downloader
- AI assistant, crypto prices, GIF maker
- Per-user message statistics tracked per group
- Central admin panel with inline keyboard buttons
- Broadcast messages to users or groups
- Ping and bot status reporting
- SQLite database with WAL (Write-Ahead Logging) mode
- Async and sync save operations
- Automatic migration from legacy JSON files
├── main.py # Bot core — message & callback handlers
├── defalts.py # Default settings for new groups
├── get_type.py # Message type & user role detection
├── font.py # Persian & English font styling
├── SaveAndLoad.py # SQLite database management
├── translate.py # Persian ↔ English translation tables
├── text_get.py # Static texts and bot messages
├── fosh.py # Word filter lists
└── all_data.json # Static content data
git clone https://github.com/soroosh185/sophia_bot_rubika.gitcd sophia_bot_rubikapip install rubka aiohttp httpx jdatetime hijridate convertdate pytz- Open
main.pyand replace theTokenvariable with your bot token:Token = "your_bot_token_here"
- Run the bot:
python main.py
- Add the bot to your group, grant it full admin permissions, then type فعال (activate) inside the group.
Group settings are initialized from defalts.py and stored in the SQLite database. Each group can independently configure:
- Which message types to allow or filter
- Warning thresholds and ban behavior
- Entertainment features to enable/disable
- User roles and permissions
- Official Channel:
@sophia_bot_rubika - Help & Tutorials:
@help_sophia
This project is released under the MIT License.