A Discord bot that analyzes GitHub repositories and provides detailed insights about their authenticity, maintenance, and overall quality.
- Repository activity analysis (commits, PRs, issues)
- Code uniqueness verification
- Documentation quality assessment
- Security policy checking
- Update frequency monitoring
- Popularity metrics tracking
- Maintenance metrics evaluation
- Authenticity scoring system
- Multi-language support (English, Spanish, French)
- Node.js >= 16.0.0
- Redis server
- Discord Bot Token
- GitHub Personal Access Token
- Clone the repository:
git clone https://github.com/yourusername/github-repository-analysis-bot.git
cd github-repository-analysis-bot
- Install dependencies:
npm install
- Copy the environment template and configure your settings:
cp .env_template .env
Edit the .env
file with your credentials:
DISCORD_TOKEN=your_discord_bot_token_here
CLIENT_ID=your_discord_client_id_here
GITHUB_TOKEN=your_github_personal_access_token_here
- Start the bot:
npm start
- For development with hot-reload:
npm run dev
- Build the TypeScript code:
npm run build
/check <repository>
- Get a quick analysis of a GitHub repository/detailed <repository>
- Get a detailed analysis with all metrics
Example:
/check facebook/react
/detailed vercel/next.js
The bot can be configured using environment variables:
DISCORD_TOKEN
: Your Discord bot tokenCLIENT_ID
: Your Discord application client IDGITHUB_TOKEN
: GitHub personal access tokenREDIS_URL
: Redis connection URL (default: redis://localhost:6379)LOG_LEVEL
: Logging level (default: info)DEFAULT_LANGUAGE
: Default language for responses (default: en)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.
- Discord.js for the Discord API integration
- Octokit for the GitHub API integration
- The amazing open-source community