Inspiration

I wanted to make something that could have a positive impact on people's mental health. I realized that many people, especially younger demographics, are finding community and support on Discord servers. However, Discord lacks built-in features tailored for emotional support and crisis intervention.

I was inspired to create Supportive Spirit to provide mental health resources right within these online communities.

What it does

Supportive Spirit is a Discord bot focused on mental health support and moderation. Key features include:

Mental health resources - Get info and resources for issues like depression, ADHD, self-harm, and more in Discord.

Self-harm message flagging - Uses AI to detect signs of self-harm in messages and flags concerning content to staff.

Chatbot - An AI-powered chatbot provides encouraging messages and mental health advice via DM.

Server configuration - Admins can customize Supportive Spirit's behavior in their communities.

Slash command interface - Intuitive Discord slash commands for accessing resources and help.

How I built it

Supportive Spirit is built in Python using the Discord.py API wrapper. Key technical features include:

OpenAI API - Used for flagging self-harm content and powering the chatbot for natural conversations.

Firebase Realtime Database - Stores server settings and message history.

Discord.py - Handles Discord API integration for slash commands, events, and messages.

Webhooks - Log flagged messages and errors to a logging channel on the server.

Python asyncio - Asynchronous event handling for real-time message scanning.

Challenges I ran into

Getting the balance right between providing resources and not encouraging harmful behavior was challenging. We iterated based on advisor feedback.

Working with asynchronous Discord API events in Python took some experimentation to get right.

Optimizing the AI models to have better conversations while staying in budget.

Accomplishments that I'm proud of

Having a working prototype that demonstrates the vision of integrating emotional support right within Discord.

Getting positive feedback from mental health professionals that this could meaningfully help communities.

Learning how to use OpenAI's powerful models for constructive applications.

What I learned

How to design AI chatbots that feel natural, helpful, and safe.

Techniques for processing text and conversations in real-time with Python.

The possibilities but also limitations of AI for emotional support.

What's next for Supportive Spirit

Expanding the range of mental health resources and self-harm detection capabilities.

Adding a web dashboard to give server admins more customization options.

Exploring integrations with crisis services to provide professional help.

Conducting research studies to formally evaluate Supportive Spirit's mental health impacts.

We're excited to keep developing Supportive Spirit into a comprehensive mental health toolbox for the online spaces that people already use daily.

Note: We noticed that in the video, the /depression command showed information about adhd, this was a mistake on our part in the code. It is now updated. (we called adhd function instead of depression function) 3:07 PM EST

Built With

+ 1 more
Share this project:

Updates