Class: Lita::Handlers::DiscordHelp
- Inherits:
-
Object
- Object
- Lita::Handlers::DiscordHelp
- Extended by:
- Lita::Handler::ChatRouter
- Defined in:
- lib/lita/handlers/discord_help.rb
Instance Method Summary collapse
-
#help(response) ⇒ void
Outputs help information about Lita commands.
Instance Method Details
#help(response) ⇒ void
This method returns an undefined value.
Outputs help information about Lita commands.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/lita/handlers/discord_help.rb', line 21 def help(response) output = build_help(response) output = filter_help(output, response) = true output = output.join("\n") = (output) Lita.logger.debug() .each { || if response.reply_privately("```\n#{}\n```") = false else response.reply_privately("|||NOMENTION|||```\n#{}\n```") end } if .length > 1 response.reply_privately('Sorry for splitting that up in multiple messages, Discord doesn\'t allow me to send responses longer than 2000 characters :(') end end |