slack-rtm-bot-helper 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack-rtm-bot-helper/helper.rb +2 -1
- data/lib/slack-rtm-bot-helper/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: c8a6e53c9ffe02db37db6db739a398746bc5f54f
|
4
|
+
data.tar.gz: 5020a8b3473e2a5cb6776e43f90541d74517e38c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa9957b95082f8ad1519a5c6e84cd4a54422af8def4d644374bf4932d1d37e3b8fa66370af9bbb59433a9b19939f592119b864e8fabbdec1850162d507a05828
|
7
|
+
data.tar.gz: 711c16c6962336d9abd5421ca9e6b243266741ca175fd50149b617ff7c969e884f5279c2a41e05f5d77b4acb5b9c86d7fd4f651d577748011eafce4d3bd66e79
|
@@ -13,6 +13,7 @@ module Slack
|
|
13
13
|
@token = token
|
14
14
|
@channel = channel
|
15
15
|
@message_block = message_block
|
16
|
+
@name = name
|
16
17
|
@me = me_id(token, name) unless name.nil?
|
17
18
|
|
18
19
|
@id = 1
|
@@ -49,7 +50,7 @@ module Slack
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def to_me?(text)
|
52
|
-
text.match?(/^<@#{@me}
|
53
|
+
text.match?(/^<@#{@me}(?:#{@name})?/)
|
53
54
|
end
|
54
55
|
|
55
56
|
private
|