Skip to content
This repository was archived by the owner on Dec 4, 2021. It is now read-only.

liang799/mental-health-sol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MindfulHacks Discord Bot

Demonstration of

Message from the devs

Just a quick note, our YouTube video is called MindfulHacks Discord Bot demonstration, but I removed it due to the poor video quality and was planning to reupload it. Here is our submission, which due to technical difficulties is incomplete.

Update: Managed to submit the projects 3 months later

Quick Start guide

Prerequisites:

  • Have a Discord account
  • Have administrative priviledges on the server that you are on

Guide

Click this link to get started

Update: The link is no longer working as hosting on a server is expensive

The instructions below are to host the bot

Prerequisites:

Build

Download the source code using git or through this website.

The following commands are needed so that python can successfully import the libraries:

$ pip install google-api-python-client
$ pip install google-api-core
$ pip install discord.py

Installation

  1. After activating the developer portal for your discord account, navigate your way to the application page.
  2. Click on the new application button.
  3. Add the bot under the Bot tab.
  4. On the same bot tab, click to reveal secret_token and copy it.
  5. Go to the last line of main.py and fill in client.run('secret_token')

A helpful guide if the instructions above are unclear

How to use

After running the program, users will need to just start typing his/her feeling to the discord channel. As long as the word contains a negative feeling(as long as the negative.txt file contains the feeling. Update to increase the number of feelings), the bot shall return youtube links for music/videos that are related to the feeling.

Navigate to the folder containing main.py using cd.

$ Python main.py &         # to run in background

About

A python discord bot that sends some appropriate Music videos from YouTube when a keyword from the database is detected

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages