Skip to content

dev-krish/DevMate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– DevMate

Python Docker License Render Version

An AI-powered developer assistant for Telegram.

Ask coding questions, generate passwords, create hashes, generate UUIDs, and chat with powerful AI modelsโ€”all without leaving Telegram.

Supports Gemini โ˜๏ธ and Ollama ๐Ÿ–ฅ๏ธ through a clean provider abstraction layer.

โœจ Features ๐Ÿค– AI-powered developer assistant ๐Ÿง  Natural language conversations ๐Ÿ”„ Switch between Gemini and Ollama ๐Ÿ” Secure password generation ๐Ÿ”’ SHA-256 hashing ๐Ÿ†” UUID generation ๐Ÿณ Docker support โ˜๏ธ Render deployment ๐Ÿ“ Structured logging ๐Ÿงฉ Modular architecture

๐Ÿ› ๏ธ Tech Stack

  • Python 3.13
  • python-telegram-bot
  • Docker
  • Docker Compose
  • Render
  • Git & GitHub

๐Ÿ—๏ธ Architecture

                Telegram

                    โ”‚

                    โ–ผ

           python-telegram-bot

                    โ”‚

                    โ–ผ

             handlers/chat.py

                    โ”‚

                    โ–ผ

          services/ai_service.py

           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
           โ”‚                 โ”‚
           โ–ผ                 โ–ผ

     Gemini Service     Ollama Service

           โ”‚                 โ”‚
           โ–ผ                 โ–ผ

      Google Gemini      Local Llama/Qwen

DevMate follows a modular architecture where Telegram handlers remain independent of the underlying AI provider. The ai_service routes requests to the configured provider, allowing seamless switching between Gemini and Ollama without changing application logic.

๐Ÿง  AI Providers

DevMate supports multiple AI providers through a unified service layer.

Provider Purpose
Gemini Cloud AI with fast responses and strong reasoning
Ollama Local AI for offline development and unlimited testing

Switch providers by updating your environment configuration:

AI_PROVIDER=gemini

or

AI_PROVIDER=ollama

For Ollama:

OLLAMA_MODEL=llama3.2:3b

๐Ÿ“‚ Project Structure

DevMate/
โ”œโ”€โ”€ handlers/
โ”œโ”€โ”€ services/
โ”œโ”€โ”€ utils/
โ”œโ”€โ”€ config.py
โ”œโ”€โ”€ logger.py
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ compose.yaml
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿš€ Running Locally

Clone the repository

git clone https://github.com/dev-krish/DevMate.git
cd DevMate

Create a virtual environment

python3 -m venv .venv
source .venv/bin/activate

Install dependencies

pip install -r requirements.txt

Configure environment variables

cp .env.example .env

Add your Telegram Bot Token to .env:

BOT_TOKEN=your_bot_token_here

Start the bot

python main.py

๐Ÿณ Running with Docker

docker compose up --build

๐Ÿ“ฆ Deployment

DevMate is containerized with Docker and can be deployed on platforms such as:

  • Render
  • Railway
  • VPS
  • AWS EC2
  • Oracle Cloud

๐Ÿ—บ๏ธ Roadmap

  • Docker Support
  • Cloud Deployment
  • Structured Logging
  • QR Code Generator
  • Base64 Encoder/Decoder
  • JSON Formatter
  • GitHub Integration
  • AI Commands

๐Ÿ”ฎ Why DevMate ?

DevMate was built to provide developers with quick utilities directly inside Telegram. Instead of opening multiple websites or command-line tools, common development tasks can be completed with simple bot commands.

๐Ÿค Contributing

Contributions, suggestions and feature requests are welcome.

๐Ÿ“„ License

This project is licensed under the MIT License.


Made with โค๏ธ by Krishnendu Dutta.

About

๐Ÿค– DevMate is a developer-focused Telegram bot built with Python and Docker. It provides useful utilities like secure password generation, SHA-256 hashing, UUID generation, and more. Designed with a modular architecture and deployed on Render, DevMate is continuously evolving with new developer tools and AI-powered features.

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors