Module: JarvisbotSongfinder::ReplyMessage::Request
- Defined in:
- lib/jarvisbot_songfinder/helpers/reply_message.rb
Overview
:nodoc:
Class Method Summary collapse
- .already_requested(request) ⇒ Object
- .demoted_successfully(request) ⇒ Object
- .demoted_unsuccessfully ⇒ Object
- .invalid_category ⇒ Object
- .invalid_url(request) ⇒ Object
- .invalid_video_id ⇒ Object
- .nothing_to_remove ⇒ Object
- .nothing_to_replace ⇒ Object
- .promoted_successfully(request) ⇒ Object
- .promoted_unsuccessfully ⇒ Object
- .queue_closed ⇒ Object
- .region_restricted(region) ⇒ Object
- .removed_successfully ⇒ Object
- .replaced_successfully(request) ⇒ Object
- .song_banned ⇒ Object
- .submitted_successfully(request) ⇒ Object
- .too_long ⇒ Object
- .too_short ⇒ Object
- .unknown_provider ⇒ Object
- .usage ⇒ Object
- .user_already_requested(request) ⇒ Object
Class Method Details
.already_requested(request) ⇒ Object
20 21 22 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 20 def self.already_requested(request) "#{request} already exists in the queue" end |
.demoted_successfully(request) ⇒ Object
76 77 78 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 76 def self.demoted_successfully(request) "Request: #{request} was demoted successfully" end |
.demoted_unsuccessfully ⇒ Object
80 81 82 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 80 def self.demoted_unsuccessfully "Cannot demote" end |
.invalid_category ⇒ Object
40 41 42 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 40 def self.invalid_category "Your request is not in Music category" end |
.invalid_url(request) ⇒ Object
28 29 30 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 28 def self.invalid_url(request) "#{request} is invalid" end |
.invalid_video_id ⇒ Object
64 65 66 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 64 def self.invalid_video_id "Invalid video ID" end |
.nothing_to_remove ⇒ Object
52 53 54 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 52 def self.nothing_to_remove "Nothing to remove. Use '!sr url/search term' to request something" end |
.nothing_to_replace ⇒ Object
48 49 50 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 48 def self.nothing_to_replace "Nothing to replace. Use '!sr url/search term' to request something" end |
.promoted_successfully(request) ⇒ Object
68 69 70 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 68 def self.promoted_successfully(request) "Request: #{request} was promoted successfully" end |
.promoted_unsuccessfully ⇒ Object
72 73 74 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 72 def self.promoted_unsuccessfully "Cannot promote" end |
.queue_closed ⇒ Object
12 13 14 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 12 def self.queue_closed "Song queue is closed. Please wait until Dan opens it." end |
.region_restricted(region) ⇒ Object
60 61 62 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 60 def self.region_restricted(region) "This video is not available in the #{region}" end |
.removed_successfully ⇒ Object
56 57 58 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 56 def self.removed_successfully "Your request removed from the queue successfully" end |
.replaced_successfully(request) ⇒ Object
44 45 46 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 44 def self.replaced_successfully(request) "Your previous request was replaced with #{request}" end |
.song_banned ⇒ Object
89 90 91 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 89 def self.song_banned "Song was banned by Dan, request something else" end |
.submitted_successfully(request) ⇒ Object
16 17 18 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 16 def self.submitted_successfully(request) "Your request: #{request} successfully submitted" end |
.too_long ⇒ Object
32 33 34 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 32 def self.too_long "Your request is too long, please stick to videos not longer than 10 minutes" end |
.too_short ⇒ Object
36 37 38 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 36 def self.too_short "Your request is too short, troll requests or gnoming will not fly here" end |
.unknown_provider ⇒ Object
84 85 86 87 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 84 def self.unknown_provider "Unknown provider. Available providers: " + JarvisbotSongfinder::Provider.available_providers.to_s end |
.usage ⇒ Object
8 9 10 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 8 def self.usage "Usage: '!sr $url'" end |
.user_already_requested(request) ⇒ Object
24 25 26 |
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 24 def self.user_already_requested(request) "You already have #{request} in the queue, use '!replace url/search term' to replace" end |