Inspiration

What inspired us to do the discord bot is because we wanted to make a bot that can improve your health that is accessable and free. A lot of people have discord and it is free so it is easy for a lot of people to access. Most websites regarding health are put behind a paywall so it is hard for everybody to access. Every person in my group was familiar with discord so it was the easiest for everyone to understand. Discord bots can also be easily updated allowing for more to keep being added.

What it does

This discord bot helps with Diet, Exercise and Sleep !help - Gives a list of commands !sleep - Starts and ends a timer to count your sleep time. Use !sleep start to start and !sleep end to end. !exercise - Give it a workout area(push - chest, shoulders, triceps) (Pull - back, biceps) (legs - quads, hamstrings, calves) and it will give you exercises based on what you chose. For example !exercise push chest !food - Gives a link to a search engine that matches foods and their ID !nutrition - Gives the nutritional values of your diet. !addfood - Lets user add food to their diet by using food IDs !clearfood - Removes all diet data for the user !suggest - Gives food suggestions based on the user diet

How we built it

We used discord.py to send and receive messages from Discord. Using Discord's developer portal, we used an access TOKEN to control the Discord bot. We also used the CSV module to extract and manipulate data inside the databases of food that we found on the Canadian Nutrient File. link

Challenges we ran into

The biggest challenge we encountered was understanding and using CSV files. Since the database was stored in a CSV file. Collectively, we had to understand how to open, read and manipulate the data from the CSV files.

Accomplishments that we're proud of

We are very proud that we were able to adapt and learn many new concepts in our first Hackathon. Our team had little experience in coding outside of basic Python and learning to use the Discord library was a huge accomplishment.

What we learned

We all believe that the most important skill that we learned was to code as a team. None of our members have worked on a project with group members and group work was eye-opening for our team. As we worked through the project, we learned how to collaborate and organize code with others.

What's next for Healthy Pal

We are going to continue to update and refine the features. If possible, we will try to add the bot to different communities. Most of all, Healthy Pal served as a learning oppourtunity that allowed us to gain valuebal skills for whatever we want to create in the future.

Built With

Share this project:

Updates