Module: JarvisbotSongfinder::ReplyMessage::Request

Defined in:
lib/jarvisbot_songfinder/helpers/reply_message.rb

Overview

:nodoc:

Class Method Summary collapse

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_unsuccessfullyObject



80
81
82
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 80

def self.demoted_unsuccessfully
  "Cannot demote"
end

.invalid_categoryObject



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_idObject



64
65
66
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 64

def self.invalid_video_id
  "Invalid video ID"
end

.nothing_to_removeObject



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_replaceObject



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


68
69
70
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 68

def self.promoted_successfully(request)
  "Request: #{request} was promoted successfully"
end


72
73
74
# File 'lib/jarvisbot_songfinder/helpers/reply_message.rb', line 72

def self.promoted_unsuccessfully
  "Cannot promote"
end

.queue_closedObject



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_successfullyObject



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_bannedObject



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.(request)
  "Your request: #{request} successfully submitted"
end

.too_longObject



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_shortObject



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_providerObject



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

.usageObject



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