Changeset View
Changeset View
Standalone View
Standalone View
lib/lsg_irc/wolfram_alpha_plugin.ex
Context not available. | |||||
def handle_info({:irc, :trigger, _, m = %IRC.Message{trigger: %IRC.Trigger{type: :bang, args: query}}}, state) do | def handle_info({:irc, :trigger, _, m = %IRC.Message{trigger: %IRC.Trigger{type: :bang, args: query}}}, state) do | ||||
query = Enum.join(query, " ") | query = Enum.join(query, " ") | ||||
params = %{ | params = %{ | ||||
"appid" => Keyword.get(Application.get_env(:lsg, :wolframalpha, []), :app_id, "NO_APP_ID"), | "appid" => Keyword.get(Application.get_env(:nola, :wolframalpha, []), :app_id, "NO_APP_ID"), | ||||
"units" => "metric", | "units" => "metric", | ||||
"i" => query | "i" => query | ||||
} | } | ||||
Context not available. |