lita-discord_oauth 0.1.1.alpha.35 → 0.1.1.alpha.36

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: bdbe435bba0d66ea3919b26a6f3f18429be48391
4
- data.tar.gz: d5db2ad859a5759d49c0f12c1bb48f1e06a1f66b
3
+ metadata.gz: c1c887041d5b8ff029f4442232c470a9948b8132
4
+ data.tar.gz: 8d497179fd338c1c120e01c5526e0c5ec60ba036
5
5
  SHA512:
6
- metadata.gz: f031a3afe07d9264db8912dbbcd0c374f6d0012b179016d20fdf5d5660c339683e644580a0e23fd12cd8e65586be4efaf9b3bdc83c0c4a35273dd6549f11c747
7
- data.tar.gz: 6ba4e9485c54bdb9ba2ed27bac130a928dc1101401bb5be5094321912f4abf4488a36f9f5f45488707b8d6a1b7f565d38d85282bae0065f6ecccc703a7d07b01
6
+ metadata.gz: 26eda66780fef34e6f8b41fffbb4ae93d4a08448161ad574da3134371ab3275cf5fe9a57c3f82081ee9df1fb6925af07a1bf44e29c76419abdaac83f958c8e8e
7
+ data.tar.gz: 514f20bca76d2648a6b70b7349197bc2eb51b873e3b8346150363834122e5ce2f3780b2c66d1e856a68e9b4c1f99ade586ed677e5aa4e48322dd3c0553a46cc3
@@ -18,11 +18,12 @@ module Lita
18
18
 
19
19
  @client.message do |event|
20
20
  message = event.message
21
+ author_id = message.author.id.to_s
21
22
 
22
23
  Lita.logger.debug('Message: ' + message.content)
23
- Lita.logger.debug('Author ID: ' + message.author.id)
24
+ Lita.logger.debug('Author ID: ' + author_id)
24
25
 
25
- user = Lita::User.find_by_id(message.author.id)
26
+ user = Lita::User.find_by_id(author_id)
26
27
  user = Lita::User.create(user) unless user
27
28
 
28
29
  Lita.logger.debug('User ID: ' + user.id)
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.35
4
+ version: 0.1.1.alpha.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns