Class: Lita::Handlers::Bigtext
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::Bigtext
- Defined in:
- lib/lita/handlers/bigtext.rb
Instance Method Summary collapse
Instance Method Details
#hide_bigtext(message) ⇒ Object
18 19 20 |
# File 'lib/lita/handlers/bigtext.rb', line 18 def hide_bigtext() .reply longtext end |
#longtext ⇒ Object
26 27 28 29 30 |
# File 'lib/lita/handlers/bigtext.rb', line 26 def longtext (1..100).each.map do %w[able baker charlie delta echo alpha bravo hawaii].sample end.join(' ') end |
#snip_text(text) ⇒ Object
22 23 24 |
# File 'lib/lita/handlers/bigtext.rb', line 22 def snip_text(text) Lita::Extensions::ShipToPastebin.new.save_to_pastebin(text, api_key: config.pastebin_api_key) end |