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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1de6b2d6a58c4c706fc4799aa1ee9fda3a21ca5
4
- data.tar.gz: 182bbad53f7b457b19c7e24ac473fdc5183a0084
3
+ metadata.gz: 024ba557dd5dcfb6d8accd31d3e1ce28d49245c0
4
+ data.tar.gz: 548fa57ddc8588a28dbf99d6d96505ea81ac8a6d
5
5
  SHA512:
6
- metadata.gz: f7fb405cd0bff4c35fbe08ef49f6e375a486662dc79ca400512b283623edb6416f21b98254f5ca82d760a64f653a6657ffd7d19fb63ed3891d88b0001a2c8dec
7
- data.tar.gz: 4be1b34a2c532c93f41bc8f769341ad031e7d98670118a1bac34ed3ef5591effbac12bbc0067a1fcd910b070b3271487b365fe544760872057431c9beb163dc7
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('Target user ID: ' + target.user.id)
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
@@ -27,8 +27,8 @@ module Lita
27
27
  private
28
28
 
29
29
  def table_row(key, value)
30
- key_width = 25
31
- value_width = 112
30
+ key_width = 30
31
+ value_width = 107
32
32
 
33
33
  key_text = key.ljust(key_width, ' ')
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-discord_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.alpha.60
4
+ version: 0.1.2.alpha.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns