lita-discord_oauth 0.1.1.alpha.32 → 0.1.1.alpha.33
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 +6 -5
- 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: f5dea551f0efb55107c24d1f9149bcfa32808ebf
|
4
|
+
data.tar.gz: 5d720f23e906e742fc9e20aeb90b265981e17081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0dad2be745ded4d3433cd4ae1948fe870d0b5679c578425b854034e95b4dc2d7da1bcf88cdff3299e2caee6f0620688f476651e92f5251da169f9a56c65963
|
7
|
+
data.tar.gz: 199fea4e5340f16869960c2eeaced159a5d76e321e20de8aa3cd81f475d1bbc2616b01a1021d8c21b806503c20245f7a7a14bf326b9979de9b6fc7c84c734dab
|
@@ -20,13 +20,14 @@ module Lita
|
|
20
20
|
message = event.message
|
21
21
|
message_text = message.content
|
22
22
|
|
23
|
-
puts message_text
|
24
23
|
puts message
|
25
24
|
puts message.author.id
|
26
25
|
|
27
26
|
user = Lita::User.find_by_id(message.author.id)
|
28
27
|
user = Lita::User.create(user) unless user
|
29
28
|
|
29
|
+
puts user.id
|
30
|
+
|
30
31
|
channel = event.channel.id
|
31
32
|
|
32
33
|
source = Lita::Source.new(user: user, room: channel)
|
@@ -46,13 +47,13 @@ module Lita
|
|
46
47
|
end
|
47
48
|
|
48
49
|
def send_messages(target, messages)
|
49
|
-
puts target
|
50
|
-
puts target.user
|
51
|
-
puts target.user.id
|
50
|
+
puts 'Target: ' + target
|
51
|
+
puts 'Target user: ' + target.user
|
52
|
+
puts 'Target user id: ' + target.user.id
|
52
53
|
|
53
54
|
mention = @client.user(target.user.id).mention
|
54
55
|
|
55
|
-
puts mention
|
56
|
+
puts 'Mention: ' + mention
|
56
57
|
|
57
58
|
messages.each do |message|
|
58
59
|
if mention
|