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 +4 -4
- data/lib/lita/adapters/discord_oauth.rb +5 -4
- 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: c4ac0e1920301e855629b951689897a82e66bc88
|
4
|
+
data.tar.gz: e2ff808038222434dd021e049532e5590d98ab01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
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)
|
37
|
+
robot.receive(msg) unless message.from_bot?
|
37
38
|
|
38
39
|
end
|
39
40
|
end
|