Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Know he rolls dice

  • Loading branch information...
commit 68ab839b11c5b61e2d63bcd865ee8df64f292874 1 parent ec4d9ae
@hemanth authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 rgbot.rb
View
5 rgbot.rb
@@ -69,7 +69,10 @@ def karma(msg)
end
end
-
+ def roll(msg)
+ self.deliver(@msg,(1..6).to_a.choice)
+ end
+
def main
while (true) do
@jabber.received_messages do |@msg|
Please sign in to comment.
Something went wrong with that request. Please try again.