Giter Site home page Giter Site logo

hubot-spotify-playlist's People

Contributors

j6s avatar kev5873 avatar rnewton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hubot-spotify-playlist's Issues

Preview Links?

Maybe can provide a link to preview the song on the search result. Would make things a bit easier

Use Natural Language for Commands

Since these commands are typed by non-programmers, English words are common for Hubot plugins.

  • findTrack could become spotify find <query>
  • addTrack could become spotify queue <query>
  • getToken could become spotify get token
  • removeTrack could become spotify (unqueue|remove) <query>

Preserve Spotify Key so Users Don't Have to Send It

From #1.

Oh interesting, I didn't realize that limitation existed. It sounds like something that should be rolled into the bot. The bot itself has a Redis-based brain that can store data between requests. Perhaps we could authenticate and have it re-authenticate behind the scenes as necessary? Or at least save the last key.

Change from robot.hear to robot.listen

Please change robot.hear to robot.listen in these 4 instances: https://github.com/postlight/hubot-spotify-playlist/blob/master/src/spotify-playlist.coffee#L124-L133.

Since this is using robot.hear, when I run the bot locally (even with a different name), it responds to text matches regardless of the preceding name.

robot.hear - callback is called anytime a message's text matches
robot.respond - callback is only called for messages that are immediately preceded by the robot's name or alias

Hear vs. listen: https://github.com/github/hubot/blob/master/docs/scripting.md#hearing-and-responding

I tried to submit a PR for this myself but was denied due to permissions.

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.