sinbotra 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinbotra/messenger/handler.rb +4 -2
- data/lib/sinbotra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d053f88f63bd749aa7faa4d1bfb513a2d57188ef
|
4
|
+
data.tar.gz: c42a29d3691db1f683a998663c6282a4e7c59eda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03727a0553041013378a5bdee28beb935fb70c7abc60ffa35922992944e48e1a6b49745225691e90fe5ad075db4bea966e16e5d37ee72eef95d0f2d5ddd3d0b6
|
7
|
+
data.tar.gz: 5382782b2a931d1a1ee37a1bb769a40443c9442ec3f657a0d7c7afce8a2b5fa8be4f81fd2c3ee4283d03cf77764c0baeeb7a4ca1353fa6ce2411f7b3f658252b
|
@@ -104,8 +104,10 @@ module Sinbotra::Messenger
|
|
104
104
|
msg = bot.current_message
|
105
105
|
# look for postback
|
106
106
|
postback = msg.postback
|
107
|
-
|
108
|
-
|
107
|
+
if !postback.nil?
|
108
|
+
found_pb = @postbacks.find { |pb| postback.match(pb.matcher) }
|
109
|
+
return found_pb unless found_pb.nil?
|
110
|
+
end
|
109
111
|
# if you couldn't find a postback, look for text
|
110
112
|
txt = msg.text
|
111
113
|
@listeners.find { |l| !l.default? && txt.match(l.matcher) }
|
data/lib/sinbotra/version.rb
CHANGED