Class: WordlistModule
- Defined in:
- lib/rbot/core/wordlist_ui.rb
Overview
– vim:sw=2:et ++
:title: wordlist management from IRC
- Author
-
Giuseppe “Oblomov” Bilotta <giuseppe.bilotta@gmail.com>
Instance Method Summary collapse
Instance Method Details
#do_list(m, p) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rbot/core/wordlist_ui.rb', line 13 def do_list(m, p) found = Wordlist.list(p) if found.empty? m.reply _("no wordlist found") else m.reply _("Wordlists: %{found}") % { :found => found.sort.join(', ') } end end |
#help(plugin, topic = "") ⇒ Object
9 10 11 |
# File 'lib/rbot/core/wordlist_ui.rb', line 9 def help(plugin, topic="") _("wordlist list [<pattern>] => list wordlists (matching <pattern>)") end |