Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Choice Question: Ask will show the choice

  • Loading branch information...
commit 45f8039d28688dfbea2aefa484843af6f62dca62 1 parent b7d2088
@burtlo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/choice.rb
View
4 lib/choice.rb
@@ -3,6 +3,10 @@
class Robut::Plugin::Quiz::Choice
include Robut::Plugin::Quiz::Question
+ def ask
+ "@all Question '#{@question}' (#{@parameters.map {|p| "'#{p}'" }.join("/")})"
+ end
+
def handle_response(sender_nick,response)
if a_valid_choice response
Please sign in to comment.
Something went wrong with that request. Please try again.