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
- Have a Discord account
- Have administrative priviledges on the server that you are on
Click this link to get started
Update: The link is no longer working as hosting on a server is expensive
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- After activating the developer portal for your discord account, navigate your way to the application page.
- Click on the new application button.
- Add the bot under the Bot tab.
- On the same bot tab, click to reveal
secret_tokenand copy it. - Go to the last line of
main.pyand fill inclient.run('secret_token')
A helpful guide if the instructions above are unclear
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