class AudioAddict::Commands::NowCmd
Public Instance Methods
run()
click to toggle source
# File lib/audio_addict/commands/now.rb, line 11 def run needs :network, :channel say "!txtblu! Network !txtrst!: !txtgrn!#{radio.name}!txtrst! # #{radio.network}" say "!txtblu! Channel !txtrst!: !txtgrn!#{current_channel.name}!txtrst! # #{current_channel.key}" say "!txtblu! Track !txtrst!: ... " track = current_channel.current_track resay "!txtblu! Track !txtrst!: !txtgrn!#{track.title.strip}" say "!txtblu! By !txtrst!: !txtgrn!#{track.artist.strip}" end