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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slack-smart-bot.rb +13 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c738a714de597258d063c1fd2bdfb14e37e6b8ca5f02a3afb8cb3d8dee569650
4
- data.tar.gz: d244f43a25c00c4e69c3b536b555f59512d8917463761a437b2bd7c9184c0a54
3
+ metadata.gz: 35a8588dda49773f4c5506cc6ef7a61c6797c68eb45808b2976dbf5f4a1ae675
4
+ data.tar.gz: 58ae831c55a57de1708f18deafd86bdcf2f8a33cc6b09b30d04e2df8f723ae28
5
5
  SHA512:
6
- metadata.gz: c403df2cf49b2704b4a46531b5688aff20bd9be0168b41a813a3cccf8aaa8e236ef86864c8bd81d941edc69b393d43a746ffdafc3f7446e87de9353436c08f0d
7
- data.tar.gz: 91fde7afd111859df4ca46d1eb97e7623e426e82075ccde8d6c7e13cf1796de350c633a9a4c34c194898534dce141677e53f44ecc5707c71928258dbf6237232
6
+ metadata.gz: e6336c406eb9414ea04d87a8023e6bb0baf806b851a28db1813f4b0c12391704dcc94788a4eea97a4eeffa08e770981d303e7501e2e6c8600bd886e5d1e258ec
7
+ data.tar.gz: d374db88e9cf178b65d4c1c35cd53f0a67fd9740f68108079e3d3edc3d744cd0b8d8af31ea0e2f2307f39c059cecdba52e6057e4dd75c5a3934eb35ed9d8b601
@@ -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
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-14 00:00:00.000000000 Z
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