build-buddy 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build_buddy.rb +1 -1
- data/lib/build_buddy/server.rb +10 -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: 9edf5fca3601b95a498801898c367879d99453df
|
4
|
+
data.tar.gz: 9abc45a421265ef5b57123d9e0a77bab0e795c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2c8482c86124374f51dca9ac2092879f2c972f993c61ac6fdaf59c32dd090c8448708461ee3364883fc47a6f1e1ecb5362a4ba01757e38c567fc861d5af4a2
|
7
|
+
data.tar.gz: 4f9374716fb92234bba3a8ded46f555b7ebd15749a1b8aca437831742af30d4e001aba809ddaf1bc6766feb2fac93b2886b655e9e72b9621e966f3301fab2f39
|
data/lib/build_buddy.rb
CHANGED
data/lib/build_buddy/server.rb
CHANGED
@@ -68,7 +68,16 @@ module BuildBuddy
|
|
68
68
|
end
|
69
69
|
|
70
70
|
sending_user_id = data['user']
|
71
|
-
|
71
|
+
|
72
|
+
# Only respond to messages from users and bots
|
73
|
+
if sending_user_id.nil?
|
74
|
+
if data['username'].nil? or data['subtype'] != 'bot_message'
|
75
|
+
return
|
76
|
+
end
|
77
|
+
sending_user_name = data['username']
|
78
|
+
else
|
79
|
+
sending_user_name = @reverse_user_map[sending_user_id]
|
80
|
+
end
|
72
81
|
|
73
82
|
# Don't respond if _we_ sent the message!
|
74
83
|
if sending_user_id == @rt_client.self['id']
|