Class: AudioAddict::Commands::NowCmd
- Defined in:
- lib/audio_addict/commands/now.rb
Instance Method Summary collapse
Methods inherited from Base
#current_channel, #current_network, #needs, #prompt, #radio, #require_premium_account
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# 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 |