MyCodeAnalyzerBot is a Telegram bot that analyzes code files. Users can upload their code, and the bot reviews the file using Hugging Face APIs to provide feedback on structure, readability, and best practices.
- Upload a code file to Telegram and receive a detailed analysis.
- Supports various file types like
.js,.ts,.py, etc. - Uses Hugging Face models for analysis and insights.
- Simple and intuitive interaction via Telegram.
- Node.js for the backend.
- TypeScript for type safety.
- Telegram Bot API for user interactions.
- Hugging Face API for AI-based code analysis.
-
Clone the repository:
git clone https://github.com/jamyMarkos/MyCodeAnalyzerBot cd MyCodeAnalyzerBot -
Install dependencies:
npm install
-
Configure your environment in a
.envfile:TELEGRAM_TOKEN=your-telegram-bot-token HUGGINGFACE_API_TOKEN=your-huggingface-api-token
-
Start the bot:
npm run start
- Files uploaded to the bot are analyzed by Hugging Face and deleted after processing to avoid storage issues.
This project is licensed under the MIT License.