Skip to content
/ sbotify Public

Discord bot that creates a Spotify playlist with songs shared in the channels.

Notifications You must be signed in to change notification settings

jkleve/sbotify

Repository files navigation

Sbotify

Table of Contents

Get Started

For steps to set up a VM to run this application see the provision guide here.

Develop

# Don't forget to activate environment.
source venv/bin/activate

# Run dev server. The default port is 5000.
flasek --app src/app.py run

Run a test command.

curl -X POST -H "Content-Type: application/json" '{"msg":"hello, world"}' -Sv 127.0.0.1:5000/sms-text

See the developers guide here.

Spotify API

Sbotify uses spotify's API to manage playlists. See the spotify api guide for more information.

Deprecated or out-of-date

TODO(jkleve) clean up. I'm not sure if my old set up used nginx.

Hosting

Currently hosted on an EC2 AWS instance running out of ~/sbotify.

$ systemctl start supervisord

Supervisord runs programs as services. sbotify.ini is included to configure supervisord to run this bot as a service on whatever unix like system you're hosting on. Create a symbolic link to the system directory and restart supervisord.

$ ln -s sbotify.ini /etc/supervisord.d/sbotify.ini
$ systemctl restart supervisord

Serve sbotify logs

Add an inbound rule on the EC2 instance to allow connections on port 80. Also...

# install nginx
$ ln -s sbotify.conf /etc/nginx/conf.d/sbodify.conf
$ ln -s sbotify.log /usr/share/nginx/html/index.txt
$ systemctl enable nginx
$ systemctl start nginx

About

Discord bot that creates a Spotify playlist with songs shared in the channels.

Resources

Stars

Watchers

Forks

Packages

No packages published