Skip to content

Mobin-Pourabedini/divar-echo-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐮 Divar Cowsay Bot

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 🚀

🎬 Demo & Showcase

👀 See it for yourself

🤖 Start Bot 🤖

🎯 See it in action!

Let the cow speak for itself! 🐄:

Demo

🌟 Try these examples:

  • Send "Hello World!"
  • Try Persian text like "سلامممم دنیا"
  • Use emojis and special characters

✨ Features

  • 🎨 Transforms any message into a cow saying it in ASCII art
  • 📝 RTL compatibility for Persian text
  • 📱 Optimized display across different clients (web and mobile)

🔧 Technical Details

🛠️ Built With

  • 🐍 Python 3.9
  • 🤖 KenarBot SDK - Custom SDK for Divar's chat platform
  • 🎨 cowsay - For generating ASCII art
  • 🚀 Gunicorn - WSGI HTTP Server
  • 🐳 Docker

💡 Implementation Highlights

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

🚀 Deployment

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

🔐 Environment Variables

  • DIVAR_API_KEY: Your API key from Kenar platform
  • DIVAR_IDENTIFICATION_KEY: Your identification key from Kenar platform

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • 🚀 Thanks to Divar for providing the chat platform
  • 🧩 Thanks to Kenar Divar for their amazing platform
  • 🤖 KenarBot SDK for making the integration possible

⭐ Show your support

Give a ⭐️ if you liked it 😁!

About

this is a bot which echoes everything you say

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors