lita-discord_oauth 0.1.1.alpha.37 → 0.1.1.alpha.38

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: 14f63ccb5d1f230de5043c17d3b2f0aa8f8e44c3
4
- data.tar.gz: 13c97cace6b6f42c269a8fe57ee4fb0a103b99dd
3
+ metadata.gz: c4ac0e1920301e855629b951689897a82e66bc88
4
+ data.tar.gz: e2ff808038222434dd021e049532e5590d98ab01
5
5
  SHA512:
6
- metadata.gz: d90a6257568817696ccb2a622997f348b6c7f8a5f46c6684941d8fce41541f89c618bf23ae692f191ed9228985d67fbd4ec2d84945c8d265fd33ef30823234fb
7
- data.tar.gz: 8d1b9906b48c86a383ceeb11963774a0f746cab151b9d5d1d9225015874b580ffd65eff27d3cd37b335f6ffa7a4b0b90b1ee00c6e72750cd331d87141a7dca60
6
+ metadata.gz: 2aec3e29a91717075adff35ede515a630795731209c439edfb70628e446bfee84dd92eb29e3ac850db948d00b16ee6531ebbcda40b38a9ae29fe5e84d7ae1996
7
+ data.tar.gz: 1e4b761e7cd8f82f7c378ac88f52479f692afc15b2e37e53cc749a90dc54a3d973f4c2540dd2939cccdce911a7c87ff54f8f16c411b79d583ac43d5c2d35ebe1
@@ -20,20 +20,21 @@ module Lita
20
20
  message = event.message
21
21
  author_id = message.author.id.to_s
22
22
 
23
- Lita.logger.debug('Message: ' + message.content)
24
- Lita.logger.debug('Author ID: ' + author_id)
23
+ Lita.logger.debug('Received message from ' + author_id + ': ' + message.content)
25
24
 
26
25
  user = Lita::User.find_by_id(author_id)
27
26
  user = Lita::User.create(author_id) unless user
28
27
 
29
28
  Lita.logger.debug('User ID: ' + user.id)
30
29
 
31
- channel = event.channel.id
30
+ channel = event.channel.id.to_s
31
+
32
+ Lita.logger.debug('Channel ID: ' + channel)
32
33
 
33
34
  source = Lita::Source.new(user: user, room: channel)
34
35
  msg = Lita::Message.new(robot, message.content, source)
35
36
 
36
- robot.receive(msg) #unless message.from_bot?
37
+ robot.receive(msg) unless message.from_bot?
37
38
 
38
39
  end
39
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-discord_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.alpha.37
4
+ version: 0.1.1.alpha.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns