lib/boty/message.rb in boty-0.0.13 vs lib/boty/message.rb in boty-0.0.14
- old
+ new
@@ -10,9 +10,13 @@
@ts = data["ts"]
@team = data["team"]
@match = match
end
+ def match!(regex)
+ @match = regex.match @text
+ end
+
def from?(author)
if author.respond_to? :id
@user.id == author.id
else
@user.id == author