The Telegram bot that tells you the truth without mercy ๐
BrutalBot is an AI-powered Telegram bot with multiple personality modes, built with aiogram 3.x and Mistral AI. Choose between brutal honesty, philosophical wisdom, or sarcastic humor for your conversations.
-
๐ญ Multiple AI Modes
- Brutal Mode ๐ - Unfiltered, honest responses
- Philosophical Mode ๐ง - Thoughtful, deep insights
- Sarcastic Mode ๐ - Witty, humorous replies
-
๐ฌ Smart Conversations
- Powered by Mistral AI (mistral-large-latest)
- Context-aware responses
- Customizable response length
-
๐ Usage Management
- Daily message limits for free users
- Premium subscription via Telegram Stars
- Usage tracking and statistics
-
๐ณ Payment Integration
- Telegram Stars payment support
- Easy premium upgrade
- Automated subscription management
- Python 3.8 or higher
- Telegram Bot Token (from @BotFather)
- Mistral AI API Key (from Mistral AI)
- Clone the repository
git clone https://github.com/NotAnyOneMe/BrutalBot.git
cd BrutalBot- Install dependencies
pip install -r requirements.txt- Set up environment variables
cp .env.example .envEdit .env file with your credentials:
TOKEN=your_telegram_bot_token
MISTRAL_KEY=your_mistral_api_key
BOT_NAME=BrutalBot
PAYMENT_CUR=XTR
MAX_RESPONSE_LENGTH=500- Configure the bot
Edit utils/config.py to customize:
- AI prompt templates
- Daily message limits
- Premium pricing
- Response settings
- Run the bot
python bot/main.pyBrutalBot/
โโโ bot/
โ โโโ main.py # Main bot logic and handlers
โโโ database/
โ โโโ general.py # Database operations
โโโ utils/
โ โโโ config.py # Configuration settings
โโโ .env # Environment variables
โโโ requirements.txt # Python dependencies
โโโ README.md # Project documentation
/start- Register and view bot status- Send any text message to chat with the AI
Brutal Mode ๐
- Direct, unfiltered responses
- No sugar-coating
- Honest feedback
Philosophical Mode ๐ง
- Deep, thoughtful insights
- Reflective answers
- Wisdom-focused
Sarcastic Mode ๐
- Witty, humorous responses
- Playful sarcasm
- Entertainment-focused
- Change Mode - Switch between AI personalities
- Updates Channel - Follow bot updates
- Donate Project - Support development
- Upgrade Premium - Get unlimited messages
Free users get 10 messages per day. Premium subscribers enjoy:
- โพ๏ธ Unlimited messages
- ๐ Priority response times
- โญ Support development
Upgrade via Telegram Stars payment directly in the bot.
Users are stored with the following structure:
{
"user_id": int,
"username": str,
"preferences": {
"default_mode": "brutal|philosophical|sarcastic"
},
"subscription": {
"plan": "free|premium"
},
"usage": {
"messages_sent": int,
"daily_limit": int
}
}Customize the AI behavior in utils/config.py:
AI_PROMPT_TEMPLATE = """
You are a {mode} assistant.
User message: {user_message}
Maximum response length: {max_length} characters
"""aiogram>=3.0.0
mistralai>=0.1.0
python-dotenv>=1.0.0- Add mode to
select_mode()keyboard - Update
AI_PROMPT_TEMPLATEto handle new mode - Add mode to database schema if needed
The bot requires these database methods:
register_user(user_id, username, mode)search_user(user_id)update_mode(user_id, mode)increment_message_count(user_id)upgrade_to_premium(user_id)
"Payment system not configured"
- Ensure bot has payment rights from @BotFather
- Use
PAYMENT_CUR=XTRfor Telegram Stars
"Mistral API error"
- Check API key is valid
- Verify API quota/limits
- Check network connectivity
"User not registered"
- User must send
/startbefore chatting - Check database connection
This project is open source and available under the MIT License.
Created by MLBOR
- Telegram: @MLBOR
- GitHub: @NotAnyOneMe
- Repository: BrutalBot
Contributions, issues, and feature requests are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For support and updates:
Give a โญ๏ธ if this project helped you!
Made with โค๏ธ by MLBOR