Inspiration
Everyday we wake up yearning for something that would tell us how to be more eco friendly. Or be able to check how eco-friendly a company you're purchasing for is.
What it does
Now, with TG-Bot, you can do JUST THAT! Just call the bot and ask about a company for a comprehensive report about it's sustainability rating and random fact about the companies sustainability practices (or lack thereof).
How we built it
We built this amazing bot using python and the Discord API.
Challenges we ran into
One of the biggest challenges we ran into was extracting the data from our database and parsing that data. We also ran into a problem trying to hide the key from the internet. What we ended up doing was just having a private key file that we would read in order to run the bot. However, this means that users that wish to use the bot would not be able to without generating their very own key.
Accomplishments that we're proud of
One accomplishment that was pretty fun was adding colors to our messages based on the content. We thought it was a pretty nice touch :)
What we learned
Throughout the project, we learned a lot about Python (a lot of us were unfamiliar) as well as the inner workings of a Discord bot. While it may have been a fairly simplistic bot, we had a lot of fun making it and using the Discord library for the first time.
What's next for Sustainability Bot
- Adding functionality to parse through a user's recent purchases, finding unsustainable options and recommending the user more eco-friendly ones. We also think it'd be fun to add a sustainability average rating (to share with friends or something of the sort)
- Denying user purchases that are not eco-friendly (jk)
Built With
- discord
- python
Log in or sign up for Devpost to join the conversation.