bot_mob 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46ecaa6f92c8dfe8dd02af18cdabe5a23cbadc66
4
- data.tar.gz: e1228884787f48e1937ce6d6647a7b0055caf44c
3
+ metadata.gz: 92a808579fe8f0b959bc2612bb063d73e0155b43
4
+ data.tar.gz: 8bf08bc4ecc76ab438190964c654d1b15fe6a7d2
5
5
  SHA512:
6
- metadata.gz: fd4d141e4327eb958c38fcf250be695eb0741a566cff18f5cc2118549d7afcc72bc4148758e0863c34e27c949c6b8d517f023130a08393f3bc1bdcaf456c7445
7
- data.tar.gz: 6bae5bb2d3c39698a391155680084827ba9512a2bbb2892debd6dcc80632ecaffa5973ebb0eb9a7a630b208ccf5bf09e0820e90d21e70e8e862b7836b4c92504
6
+ metadata.gz: 9ae7d2f8109963d8e0dd9e689191303dc5964a09b0b021de9fcc2c8bc490dda1befd0f66ce7dcb315402c28339d7fe481a902c9d4a475c4f800294d6a0b5965a
7
+ data.tar.gz: 25198a5dc2a6032a76459a298f61206791d9d488b5d959aaea237234d381680d6b03ed09b43a7bc3d877839f3a88905b9e3f6ca50a8e65093d680e1f839066e0
data/lib/bot_mob/bot.rb CHANGED
@@ -101,7 +101,7 @@ module BotMob
101
101
 
102
102
  if respond?(message)
103
103
  logger.info("Received message at #{Time.now}")
104
- logger.info(" Message: \"#{message.text}\"")
104
+ logger.info(" Parameters: #{message.data}")
105
105
  handle(message)
106
106
  end
107
107
  end
@@ -29,7 +29,7 @@ module BotMob
29
29
 
30
30
  def parse_websocket(data)
31
31
  @text = data[:text]
32
- @channel_id = data[:channel_id]
32
+ @channel_id = data[:channel_id] || data[:channel]
33
33
  @bot_id = data[:bot_id]
34
34
  @team = data[:team]
35
35
  @ts = data[:ts]
@@ -1,3 +1,3 @@
1
1
  module BotMob
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bot_mob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Werner