Inspiration
When given the task to connect 2 APIs together, I thought to myself, "What two applications do I use most?". The answer was Discord, for communication and messaging (and keeping up with the latest news on MLH), and Github, for all my coding, programming, and tinkering purposes.
Thus, I utilised Discord's bot API with Github's REST API and created this aptly named project, "Gitbot".
What it does
Gitbot essentially functions as a Discord bot that sends HTTP requests to Github's API. So far, it is capable of retrieving information about Github repositories, such as its description, language, license, fork count, star count, watch count, issue count, and clone size. It can also retrieve information about Github users, such as their name, bio, company, blog, location, email, Twitter, repository and gist count, as well as their followers and following count.
How I built it
I utilised my discord.js starter kit from the Day 1 projects and used it as my starting code for Gitbot. I then went onto Github's API docs, as well as some example code that I had used prior when working with Github's API. After some added features, Gitbot was done (for now).
Challenges I ran into
There were some problems working with Github's API. Not to say that Github's API was bad, my abilities to process JSON information were getting rusty. Nonetheless, I overcame that challenge with some Googling and completed the project.
Accomplishments that I'm proud of
I'm rather proud of actually utilising the discord.js starter kit that I myself had made earlier this week. It showed me that some of my projects could actually be used efficiently, and it gave me a kick of confidence.
What I learned
Prior to this project, I've only worked with repository information when using Github's API. This project helped me to learn more about Github's API, and how to use Github's API to find user information.
What's next for Gitbot
Gitbot will likely be expanded in the future, for I feel that there are plenty of other capabilities within Github's API that could be integrated into Gitbot.
Built With
- discord
- discord.js
- github
- javascript
- node.js
Log in or sign up for Devpost to join the conversation.