Coder Social home page Coder Social logo

listentothissy's Introduction

listentothissy

Discord bot that creates spotify playlists based on discord messages.

What does it do:
Listentothissy is a bot that's able to link a spotify playlist and a discord channel together. Whenever a spotify track is posted in the channel, the track is also added to the playlist.

Configuration

This bot requires a few necessary environment variables in order to function. These are;

- DISCORD_TOKEN - Discord bot token
- CLIENT_ID - spotify client id
- CLIENT_SECRET - spotify client secret
- REDIRECT_URI - spotify redirect uri

Usage

Link account

  • Get an authorization url by sending ~link
  • Visit the url and authorize the bot
  • Send the following url to the bot using ~link <url>

Running

You can run this bot using cargo:

Docker-compose example:

version: '3'

services:
  thissy:
    build:
      context: ./listentothissy
      dockerfile: Dockerfile
    container_name: thissy
    volumes:
      - ./cache:/usr/src/thissy/cache
    environment:
      DISCORD_TOKEN: token
      CLIENT_ID: id
      CLIENT_SECRET: secret
      REDIRECT_URI: http://url:port

listentothissy's People

Contributors

angelocarly avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

listentothissy's Issues

Use refresh tokens

Currently the bot only uses an access token. Using a refresh token will remove the need to login after a while.

Store cache files in folder

In order to make running listentothissy on a docker host, the caching files should be stored in a different folder from the source. This makes it possible to update the bot without losing all configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.