Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 3.18 KB

README.md

File metadata and controls

60 lines (42 loc) · 3.18 KB

Trending Repositories

Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge

Banner

Overview

I have created a bot that does two things. First, it collects trending repositories from GitHub and sends them to a channel. The details of the repositories, such as their names, star counts, forks, etc., are also provided. Second, I display a chart based on the programming languages used in these trending repositories. Every day, my code runs using GitHub actions and automatically sends the content in the channel. This is the link to the channel: t.me/github_trending_channel

Happy coding and stay updated with the latest trending repositories! 🚀

⚠️ Because the current character limit for messages on Telegram is 4096, I can't show all the trending repos in the channel. Therefore, I've removed some repos.

Running the Project

To run the project, first, get your Telegram bot token. Then, in your project folder, run this command:

./gradlew run --args=botToken

Replace botToken with your actual Telegram bot token. For more details, please refer to the Telegram api documentation.

⚠️ This command works for me on Windows. If you're using Linux or macOS, please modify it accordingly for your platform if needed.

An alternate approach to run the project involves utilizing program arguments through the "Edit Configuration" feature. If you've acquired your Telegram bot token, you can insert it as an argument following these steps:

  1. Open intellij idea and navigate to the "Edit Configurations" settings.
  2. In the "Program arguments" field, input your Telegram bot token.
  3. Save the configuration settings.
  4. Click the green "Run" button provided by the IDE.

Credits

Contributing

Contributions to the Trending Repositories repo are welcome! If you encounter issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This repository is licensed under the MIT License.