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