Note: This project has been put on hiatus due to the SoundCloud API returning incorrect search results.
A reddit bot that looks for comments with song names and responds with their respective SoundCloud links.
Type each song on a separate line with the song name and artist (order is
irrelevant) separated by spaces and a dash. This bot will only scan the comments
posted in the subreddits listed in
* Helix - Flume * Core - RL Grime * U Already Know - Keys N Krates
Note: This bot is still in beta. If you find any errors, please respond to the bot's comment or PM it with the post and type of error. I will be sure to edit the post and try to prevent those errors from reoccuring in the future.
- Python 3
- Make a new working directory for the virtual environment.
python -m venv trapbot
cdinto the new directory, and activate the virtual environment.
cd trapbot source bin/activate
- Clone the repository.
git clone https://github.com/Kevin-Mok/TrapBot src
- Install the necessary packages.
cd src pip install -r requirements.txt
- Create a reddit app with a redirect
https://127.0.0.1/. Then, create
praw.iniwith the following information:
[trapbot] client_id= # below app name client_secret= password= username= user_agent=TrapBot user agent
soundcloud-api.iniwith your SoundCloud API key as the only line in the file.
This bot was inspired by various music discussion threads (namely in r/trap) where lists of songs would be posted with no accompanying SoundCloud links.