Module: Walkman::Commands::Queueing
- Defined in:
- lib/walkman/commands/queueing.rb
Class Method Summary collapse
Class Method Details
.artist(artist) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/walkman/commands/queueing.rb', line 4 def self.artist(artist) playlist = self.queue("artist", artist: artist) if playlist.size > 0 output = ["♫".blue, "Playing songs by", artist.titleize.bold] output.flatten.join(" ") else "That artist couldn't be queued" end end |
.artist_radio(artist) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/walkman/commands/queueing.rb', line 15 def self.artist_radio(artist) playlist = self.queue("artist-radio", artist: artist) if playlist.size > 0 output = ["♫".blue, "Playing music like", artist.titleize.bold] output.flatten.join(" ") else "Music like that artist couldn't be queued" end end |