examples/bot.rb in scamp-0.0.3 vs examples/bot.rb in scamp-0.0.4
- old
+ new
@@ -16,19 +16,9 @@
# Limit a match to a channel condition based on a string
match "channel name check", :conditions => {:channel => "Monitoring"} do
say "Limit a match to a channel condition based on a string"
end
- # Limit a match to a channel condition based on a regex
- match /^channel regex (.+)$/, :conditions => {:channel => /someregex/} do
- say "Limit a match to a channel condition based on a regex"
- end
-
- # Limit a match to a user condition based on a regex
- match /^user regex (.+)$/, :conditions => {:user => /someregex/} do
- say "Limit a match to a user condition based on a regex"
- end
-
# Limit a match to a user condition based on a string
match /^user name (.+)$/, :conditions => {:user => "Will Jessop"} do
say "Limit a match to a user condition based on a string"
end