Class: WordlistModule
- Inherits:
-
CoreBotModule
- Object
- CoreBotModule
- WordlistModule
- Defined in:
- /home/apoc/projects/ruby/rbot/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
- (Object) do_list(m, p)
13 14 15 16 17 18 19 20 21 22 |
# File '/home/apoc/projects/ruby/rbot/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 |
- (Object) help(plugin, topic = "")
9 10 11 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/core/wordlist_ui.rb', line 9 def help(plugin, topic="") _("wordlist list [<pattern>] => list wordlists (matching <pattern>)") end |