Inspiration

The inspiration is the loneliness that envelopes some. And how sometimes we don't want to share feelings of despair with our loved ones because we don't want to worry them. And sometimes people don't have anyone to talk to at all and sometimes people fear being judged. But there should be something to talk to, to bring a smile on their face, to motivate, and to help them just like in the Sci-Fi movies.

What it does

It determines how the user is feeling by performing a search on a list of keywords. And then tailors its response based on the keywords found. For example, if one is sad or upset it'll cheer them up with jokes, if one is just looking to be motivated it'll fetch random motivational quotes, if one is feeling hopeless it'll fetch quotes relevant to hope, if one is going through a failure of some sort it will fetch a motivational quote relating to failure etc, if one is thinking about suicide then it directs them to proper resources and encourages them to seek help.

How I built it

I sought online resources to learn how to work with discord API and other APIs were straightforward to use (used JSON to extract relevant info from the obtained JSON data from the APIs like quote and the author and jokes).

Challenges I ran into

I couldn't find APIs that were free and allowed search on the specific category for quotes like a failure, hope etc. So to resolve that I compiled a list of quotes relevant to the keywords list from good reads and used random.choice() to select the relevant quotes randomly.

Accomplishments that I am proud of

I am proud of being successful at making this chatbot as I believe it can make a huge difference in people's lives.

What I learned

I learned how to make chatbots for discord. Something that was once a mystery to me and intrigued me.

What's next for Cheer Bot

I will add more functionalities to it and then will make it public on discord so that anyone could add it to their server.

Built With

Share this project:

Updates