lita-discord_oauth 0.1.2.alpha.60 → 0.1.2.alpha.61
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 -4
- data/lib/lita/handlers/discord_help.rb +2 -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: 024ba557dd5dcfb6d8accd31d3e1ce28d49245c0
|
4
|
+
data.tar.gz: 548fa57ddc8588a28dbf99d6d96505ea81ac8a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9856dcb79d4079fc849739604a117abf7fda07bf913c2c7f224723ccb068361184bdb67bc113af050be9a63ec439c807d4bd235d6babd777a173ec0ef116e60a
|
7
|
+
data.tar.gz: 05629ef3ede000610ea7495f074dc0a5d5a5a697555d23b4cf87f21fdaf0b264b93f2de758f8ad3b928bda312660f9ba55a1192c2c314e9191f8e28b2c34f361
|
@@ -73,19 +73,18 @@ module Lita
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def send_messages(target, messages)
|
76
|
-
Lita.logger.debug(
|
77
|
-
Lita.logger.debug('Target channel ID: ' + target.room)
|
76
|
+
Lita.logger.debug("Sending message to user #{target.user.id} in channel #{target.room}")
|
78
77
|
|
79
78
|
mention = @client.user(target.user.id).mention
|
80
79
|
|
81
|
-
Lita.logger.debug('Mention: ' + mention)
|
82
|
-
|
83
80
|
messages.each do |message|
|
84
81
|
if mention
|
85
82
|
message = mention + ",\n" + message
|
86
83
|
|
87
84
|
Lita.logger.debug(message)
|
88
85
|
|
86
|
+
Lita.logger.debug('Message is too long') if message.length > 2000
|
87
|
+
|
89
88
|
@client.send_message(target.room, message)
|
90
89
|
end
|
91
90
|
end
|