lita-discord_oauth 0.1.1.alpha.34 → 0.1.1.alpha.35
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 +2 -3
- 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: bdbe435bba0d66ea3919b26a6f3f18429be48391
|
4
|
+
data.tar.gz: d5db2ad859a5759d49c0f12c1bb48f1e06a1f66b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f031a3afe07d9264db8912dbbcd0c374f6d0012b179016d20fdf5d5660c339683e644580a0e23fd12cd8e65586be4efaf9b3bdc83c0c4a35273dd6549f11c747
|
7
|
+
data.tar.gz: 6ba4e9485c54bdb9ba2ed27bac130a928dc1101401bb5be5094321912f4abf4488a36f9f5f45488707b8d6a1b7f565d38d85282bae0065f6ecccc703a7d07b01
|
@@ -18,9 +18,8 @@ module Lita
|
|
18
18
|
|
19
19
|
@client.message do |event|
|
20
20
|
message = event.message
|
21
|
-
message_text = message.content
|
22
21
|
|
23
|
-
Lita.logger.debug('Message: ' + message)
|
22
|
+
Lita.logger.debug('Message: ' + message.content)
|
24
23
|
Lita.logger.debug('Author ID: ' + message.author.id)
|
25
24
|
|
26
25
|
user = Lita::User.find_by_id(message.author.id)
|
@@ -31,7 +30,7 @@ module Lita
|
|
31
30
|
channel = event.channel.id
|
32
31
|
|
33
32
|
source = Lita::Source.new(user: user, room: channel)
|
34
|
-
msg = Lita::Message.new(robot,
|
33
|
+
msg = Lita::Message.new(robot, message.content, source)
|
35
34
|
|
36
35
|
robot.receive(msg) #unless message.from_bot?
|
37
36
|
|