GithubHelp home page GithubHelp logo

niksudan / discord-weekly Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 628 KB

๐Ÿ’ฟ Create a Spotify playlist from Discord server messages

License: MIT License

TypeScript 99.00% Shell 1.00%
chatbot discord discord-bot music-bot nodejs spotify

discord-weekly's Introduction

Development lead on bespoke systems, interfaces, and mobile apps at scale for a number of industries. Strong experience with React, React Native, TypeScript, and Node.js.

Composer, music producer and performer of works in many genres. Also produces works for games and film. Experienced with sound design.

Game developer and designer with an interest in gamification and fun UI/UX.

โžก๏ธโ €Check out my website for all my stuff

discord-weekly's People

Contributors

dependabot[bot] avatar niksudan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

syedhaider426

discord-weekly's Issues

Add a voting system

When a link is posted the bot should react with "thumbs up" & "thumbs down" and people vote on the songs to make some sort of top 5 songs for the week maybe. Or general showing of the communities likes and dislikes.

YouTube links

Besides from posting Spotify links, YouTube links are pretty common. Need to be able to search for the said song on Spotify and add it if it meets a threshold.

Could use the searchTracks method?

Getting rate limited when a large number of tracks is present

Getting rate limited a lot when fetching Spotify track data.

Two solutions here:

1 - Make use of the getSeveralTracks endpoint to minimize errors
https://developer.spotify.com/documentation/web-api/reference/tracks/get-several-tracks/

2 - Implement retries (switch to RxJS?)

Note: If Web API returns status code 429, it means that you have sent too many requests. When this happens, check the Retry-After header, where you will see a number displayed. This is the number of seconds that you need to wait, before you try your request again.

https://developer.spotify.com/documentation/web-api/

Store playlist information to database

For logging purposes, this would be a good thing to have. Doesn't need to be a massive MySQL db, just SQLite will do.

Should store the following information:

  • Playlist (id, from, to)
  • Track (uri, source, name, albumId, artistIds, requesterId, playlistId)
  • Artist (id, name)
  • Album (id, name)
  • Requester (id, name)

Spotify albums

What should happen when someone posts a link to an album? Should we add the whole track listing? Or should we just skip over it?

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.