lib/ayadn/app.rb in ayadn-1.7.6 vs lib/ayadn/app.rb in ayadn-1.7.7

- old
+ new

@@ -399,23 +399,27 @@ Action.new.write(options) end desc "pm @USERNAME", "Send a private message to @username" long_desc Descriptions.pmess - option :embed, aliases: "-E", type: :array, desc: "Embed one or several pictures in the new post" - option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new post" - option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new post" - option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new post" + option :embed, aliases: "-E", type: :array, desc: "Embed one or several pictures in the new message" + option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new message" + option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new message" + option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new message" def pm(*username) Action.new.pmess(username, options) end desc "send CHANNEL", "Send a message to a CHANNEL (-C)" map "-C" => :send_to_channel long_desc Descriptions.send_to_channel + option :embed, aliases: "-E", type: :array, desc: "Embed one or several pictures in the new message" + option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new message" + option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new message" + option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new message" def send_to_channel(channel_id) - Action.new.send_to_channel(channel_id) + Action.new.send_to_channel(channel_id, options) end desc "reply POST", "Reply to post nĀ°POST (-R)" map "-R" => :reply long_desc Descriptions.reply @@ -459,11 +463,12 @@ desc "blacklist COMMAND (PARAM)", "Manage your blacklist (-K)" map "-K" => :blacklist long_desc Descriptions.blacklist subcommand "blacklist", Blacklist - desc "nowplaying", "Post the current playing track from iTunes or Last.fm (-np)" + desc "nowplaying", "Post the current playing track from iTunes or Last.fm (-NP)" map "-np" => :nowplaying + map "-NP" => :nowplaying long_desc Descriptions.nowplaying option :no_url, aliases: "-n", type: :boolean, desc: "Don't append preview or album art at the end of the post" option :lastfm, aliases: "-l", type: :boolean, desc: "Get current track from Last.fm instead of iTunes" def nowplaying Action.new.nowplaying(options)