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 +4 -4
- data/lib/lita/adapters/discord_oauth.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c887041d5b8ff029f4442232c470a9948b8132
|
4
|
+
data.tar.gz: 8d497179fd338c1c120e01c5526e0c5ec60ba036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: ' +
|
24
|
+
Lita.logger.debug('Author ID: ' + author_id)
|
24
25
|
|
25
|
-
user = Lita::User.find_by_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)
|