GithubHelp home page GithubHelp logo

spotiuribot's People

Contributors

samgh96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spotiuribot's Issues

Inline sexyness

So! It would be awesome to use the bot like this:

@spotiuribot spotify:track:6lUC7qK9Wz3ED5EX9xxrU6

And then lets you choose the info you want to share:

  • Artist
  • Song
  • Album
  • Link
  • All

(List should be discussed)

The All one would be the most used option I think, It will send a message like:

Artist: Racer X 
Album: Technical Difficulties 
Track: Technical Difficulties

And a button with the link to the song in https://open.spotify.com

PD: https://www.urbandictionary.com/define.php?term=sexyness

Link to video

Sending the song/album info is very usefull, but it would be awesome if the bot also searches the song on youtube and gives you a link to the first result of the response.

Change the error mensage emote

I think it fits better the intention of the bot if, instead of showing a sad face when given an unrecognized URI, it shows the "Give you the finger" emote

Add URLs

diff --git a/lib/bot/bot.ex b/lib/bot/bot.ex
index 0903f22..9df46c7 100644
--- a/lib/bot/bot.ex
+++ b/lib/bot/bot.ex
@@ -8,7 +8,7 @@ defmodule Spotiuribot.Bot do

   def getalbum(uri) do
     case HTTPotion.get("https://api.spotify.com/v1/albums/#{uri}").body |> Poison.decode do
-      {:ok, %{"artists" => [%{"name" => artistname} | _ ], "name" => albumname}} -> "Artist: #{artistname} \nAlbum: #{albumname}"
+      {:ok, %{"artists" => [%{"name" => artistname} | _ ], "name" => albumname}} -> "Artist: #{artistname} \nAlbum: #{albumname}\n\nhttps://open.spotify.com/album/#{uri}"
       _ -> "Unknown URI: #{uri} ☹️"
     end
   end
@@ -17,7 +17,7 @@ defmodule Spotiuribot.Bot do
     case HTTPotion.get("https://api.spotify.com/v1/tracks/#{uri}").body |> Poison.decode do
       {:ok, %{"artists" => [%{"name" => artistname} | _ ],
              "album" => %{"name" => albumname},
-              "name" => trackname}} -> "Artist: #{artistname} \nAlbum: #{albumname} \nTrack: #{trackname}"
+              "name" => trackname}} -> "Artist: #{artistname} \nAlbum: #{albumname} \nTrack: #{trackname}\n\nhttps://open.spotify.com/track/#{uri}"
       _ -> "Unknown URI: #{uri} ☹️"
     end
   end

Disable link preview

Estaria bien que los mensajes fueran mas pequeños para los usuarios de movil.
Aqui te dejo como se pueden quitar:

answer msg, message_text, bot: name, disable_web_page_preview: true

Update to ExGram

Telex 0.2.0-rc1 is quite old, better update to ExGram before anything else

image

Make the bot accept URI's inside messages

"spotify:track:5MYfpFJYm8WNFGssR6H2Oz"
its ok, but why dont it also accept
"Ey Sam, you are soy beautiful, listen to this. spotify:track:5MYfpFJYm8WNFGssR6H2Oz I'm sure you will love 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.