Inspiration

One of the teammates saw a tweet about a person committing suicide just after posting depressing and suicidal thoughts on Twitter for a long time. Our team felt really bad about the fact that nobody turned up to help him when he tweeted those kind of tweets. This led us to an idea of creating a bot which will comment on the tweets that are potentially concerning and also send a dm to the user of that tweet.

What it does

Thera Bot searches for the keyword such as 'suicide', 'depressed', 'sad' in tweets and it fetches those tweets using the Twitter API. It then comments on those tweets containing these keywords and also sends a dm to the user of the tweet the following - "Hey! Hope you are doing good! Please know that we are here for you. You should visit a therapist if you feel like. Here is a link from which you can find a good one - https://www.goodtherapy.org/find-therapist.html". Its motive is to provide people in need positivity and a link that can help them to talk to a therapist.

How I built it

Firstly, the Twitter API gathers the tweets having keywords ('suicide', 'depressed', 'sad'). After fetching these tweets, our Machine Learning Model predicts if the tweet is concerning. If the tweet is concerning, the bot reacts to the tweet.

Challenges I ran into

Using Twitter API, creating a python bot, Integrating all the codes together(API + ML Model + Bot Code)

Accomplishments that I'm proud of

Teaming up with strangers, Making a possible demo video

What I learned

How to use a bot, APIs, and Machine Learning Model

What's next for Thera Bot

This is one of many helps that Thera Bot can provide. It has the ability to help more people with different issues. For example, our current code has the ability to retweet any tweet that is intended for a missing person or any other thing, helping the user to spread the information to more people so the search becomes easy. Right now, our bot works on the twitter platform, but on a larger scale we look forward to implement it on other platforms as well.

Share this project:

Updates