4 # :title: wordlist management from IRC
6 # Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
8 class WordlistModule < CoreBotModule
9 def help(plugin, topic="")
10 _("wordlist list [<pattern>] => list wordlists (matching <pattern>)")
14 found = Wordlist.list(p)
16 m.reply _("no wordlist found")
18 m.reply _("Wordlists: %{found}") % {
19 :found => found.sort.join(', ')
25 plugin = WordlistModule.new
27 plugin.map "wordlist list [:pattern]", :action => :do_list