slack-smart-bot 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack-smart-bot.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a8588dda49773f4c5506cc6ef7a61c6797c68eb45808b2976dbf5f4a1ae675
|
4
|
+
data.tar.gz: 58ae831c55a57de1708f18deafd86bdcf2f8a33cc6b09b30d04e2df8f723ae28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6336c406eb9414ea04d87a8023e6bb0baf806b851a28db1813f4b0c12391704dcc94788a4eea97a4eeffa08e770981d303e7501e2e6c8600bd886e5d1e258ec
|
7
|
+
data.tar.gz: d374db88e9cf178b65d4c1c35cd53f0a67fd9740f68108079e3d3edc3d744cd0b8d8af31ea0e2f2307f39c059cecdba52e6057e4dd75c5a3934eb35ed9d8b601
|
data/lib/slack-smart-bot.rb
CHANGED
@@ -116,6 +116,19 @@ class SlackSmartBot
|
|
116
116
|
@channels_id = Hash.new()
|
117
117
|
@channels_name = Hash.new()
|
118
118
|
get_channels_name_and_id()
|
119
|
+
|
120
|
+
client.on :close do |_data|
|
121
|
+
m = "Connection closing, exiting. #{Time.now}"
|
122
|
+
@logger.info m
|
123
|
+
@logger.info _data
|
124
|
+
end
|
125
|
+
|
126
|
+
client.on :closed do |_data|
|
127
|
+
m = "Connection has been disconnected. #{Time.now}"
|
128
|
+
@logger.info m
|
129
|
+
@logger.info _data
|
130
|
+
end
|
131
|
+
|
119
132
|
self
|
120
133
|
end
|
121
134
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-smart-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-client
|