aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/messageinfo.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/messageinfo.rb b/core/messageinfo.rb
index 627ca90..c9a12c4 100644
--- a/core/messageinfo.rb
+++ b/core/messageinfo.rb
@@ -11,8 +11,6 @@ module Dinobot
end
def respond(arr)
- raise "response not array -- #{arr}" unless arr.is_a?(Array)
-
case arr.first
when :say
raise "wrong number of arguments -- #{arr}" unless arr.length == 3
@@ -24,6 +22,10 @@ module Dinobot
@response << arr
end
+
+ def response?
+ !@response.empty?
+ end
end
end
end