class WordlistModule

Author

Giuseppe “Oblomov” Bilotta <giuseppe.bilotta@gmail.com>

Public Instance Methods

do_list(m, p) click to toggle source
# File lib/rbot/core/wordlist_ui.rb, line 13
def do_list(m, p)
  found = Wordlist.list(@bot, p)
  if found.empty?
    m.reply _("no wordlists found in %{path}") % {
      path: @bot.path('wordlists')
    }
  else
    m.reply _("Wordlists: %{found}") % {
      found: found.sort.join(', ')
    }
  end
end
help(plugin, topic="") click to toggle source
# File lib/rbot/core/wordlist_ui.rb, line 9
def help(plugin, topic="")
  _("wordlist list [<pattern>] => list wordlists (matching <pattern>)")
end