A fun and quirky chatbot implementation in Divar's chat environment
using divar openapi that transforms your messages into ASCII cow art!
Built using the KenarBot SDK. ⚙️
Powered By Kenar Divar 🚀
🤖 Start Bot 🤖
Let the cow speak for itself! 🐄:
- Send "Hello World!"
- Try Persian text like "سلامممم دنیا"
- Use emojis and special characters
- 🎨 Transforms any message into a cow saying it in ASCII art
- 📝 RTL compatibility for Persian text
- 📱 Optimized display across different clients (web and mobile)
- 🐍 Python 3.9
- 🤖 KenarBot SDK - Custom SDK for Divar's chat platform
- 🎨 cowsay - For generating ASCII art
- 🚀 Gunicorn - WSGI HTTP Server
- 🐳 Docker
The bot uses several text manipulation techniques to ensure proper display in Divar's RTL environment:
- 📝 Space preservation using temporary characters
- ⚡ RTL markers insertion for consistent display
- 🔄 Forward/backward slash swapping for RTL compatibility
- ✨ Font ratio adjustments for Divar's chat interface
The application is containerized using Docker and uses Gunicorn as the WSGI HTTP server. Gunicorn provides:
- 📊 Process management
- 🔄 Multiple worker processes for handling concurrent requests
- ⚡ Better performance and reliability compared to development servers
- 📈 Easy scaling capabilities
DIVAR_API_KEY: Your API key from Kenar platformDIVAR_IDENTIFICATION_KEY: Your identification key from Kenar platform
This project is licensed under the MIT License - see the LICENSE file for details.
- 🚀 Thanks to Divar for providing the chat platform
- 🧩 Thanks to Kenar Divar for their amazing platform
- 🤖 KenarBot SDK for making the integration possible
Give a ⭐️ if you liked it 😁!
