lita-discord_oauth 0.1.2.alpha.95 → 0.1.2.alpha.96

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: d00d63bde6baec4768fda239af1c6e5bd96ef762
4
- data.tar.gz: f95e5a4b877a55983f563a7a07ee4356652ffff2
3
+ metadata.gz: b94d55ce9b25a25d137aebea99513f6d7f021e3d
4
+ data.tar.gz: 735bc81262a8d0978291a50fd893923c8fbf78ba
5
5
  SHA512:
6
- metadata.gz: 7bd9ff5b92ef435d92375653077771f5a0672cd06d920569c8882699d8674b5d63066b2c69cae997e906a6ed6eb54f6c8cf27f95b2664306dadc96fa89d765fc
7
- data.tar.gz: 817a50ace1b0125864561559815cfe23079361b60106bb82afe7daf67f00b96797edd1a2ff88b230f7495a109a1bd2617d10fbac7cd29ba1ae08343e52c384d6
6
+ metadata.gz: 28fd15d1844eeb83b2ee305ea363dbb2eb891a2bc6dd14bfa15a1b42d20d75962dc31e73247a61b33378033158399b79bf2c4683e5fbe0ada85216e62af6e8c6
7
+ data.tar.gz: d9e89e39d4944a800be7b8a1441a7885b3abb09dca9800a734c0c55b5ac732c33509da2fea342bb0e00ae0446cc84982c12963af6698c7fd3c7c277fded15df7
@@ -79,11 +79,13 @@ module Lita
79
79
 
80
80
  messages.each do |message|
81
81
  if mention
82
- message = mention + ",\n" + message
82
+ no_mention = message.slice!('|||NOMENTION|||')
83
83
 
84
- Lita.logger.debug(message)
84
+ message = mention + ",\n" + message if no_mention != '|||NOMENTION|||'
85
85
 
86
- Lita.logger.debug('Message is too long') if message.length > 2000
86
+
87
+
88
+ Lita.logger.info('Message is too long') if message.length > 2000
87
89
 
88
90
  @client.send_message(target.room, message)
89
91
  end
@@ -18,6 +18,7 @@ module Lita
18
18
  def help(response)
19
19
  output = build_help(response)
20
20
  output = filter_help(output, response)
21
+ first_message = true
21
22
 
22
23
  output = output.join("\n")
23
24
 
@@ -26,7 +27,11 @@ module Lita
26
27
  Lita.logger.debug(messages)
27
28
 
28
29
  messages.each { |message|
29
- response.reply_privately("```\n#{message}\n```")
30
+ if first_message
31
+ response.reply_privately("```\n#{message}\n```")
32
+ else
33
+ response.reply_privately("|||NOMENTION|||```\n#{message}\n```")
34
+ end
30
35
  sleep(0.2)
31
36
  }
32
37
 
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.95
4
+ version: 0.1.2.alpha.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns