class Qldlibrary
Public Class Methods
Source
# File plugins/qldlibrary.rb, line 15 def self.command_pattern /qldlibrary (.+)/i end
Source
# File plugins/qldlibrary.rb, line 25 def self.dispatch_command(query, fetch: nil) { reply: lookup(query, fetch: fetch) } end
Source
# File plugins/qldlibrary.rb, line 21 def self.lookup(query, fetch: nil) QldlibrarySearch.lookup(query, fetch: fetch) end
Public Instance Methods
Source
# File plugins/qldlibrary.rb, line 29 def execute(m, query) themed_flood_safe_reply(m, self.class.lookup(query)) end