top of page

Python GYM Chat Bot

This chat bot was made over the course of 5 weeks by 8 people.

Overall the purpose of the chat bot was to allow a person to communicate with a robot over a server on their time at the gym and what they did there and what more they can do at the gym to improve their health.

The program was coded on pyhton and my specific section of the code was made using a

My contribution to the chat bot was making the server end of the client server.

The purpose of the server was to allow multiple people(5) to connect to the server through threading using an IP address and port that I had already made and defined at the top of the program. It allows the person to connect and then send information(maximum 1024 bytes) over the server to communicate; it will alert the people who are currently on the server who has been connected to the server and who has been disconnected from the server.

I also made a program to test from common injuries of the person and how they can solve this problem.

In this code i make a class which i will use later on in the program to make the program more colourful.

i use if and else statements in this part of the code so that different outcomes occur depending upon what the response of the person writing is.

i use the code sleep(5) so that the code doesn't appear all at one time and the person is able to slowly read the code and answer.

in this part of the code i use a recursive function to create a countdown timer in order to test for head injuries on the user.

the finished code looks like this...


Featured Review
Tag Cloud
No tags yet.
bottom of page