Advertisement
Shiny_

Untitled

Apr 20th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.36 KB | None | 0 0
  1. on :message, "^" do |m, query__|
  2.         response = client.query(query__)
  3.         input = response["Input"]
  4.         result = response.find {|pod| pod.title == "Result"}
  5.         m.reply("#{input.subpods[0].plaintext} = #{result.subpods[0].plaintext}" || "Nie znaleziono rezultatów.", true)
  6.         #wolfram_(wolfram_query) || "Nie znaleziono rezultatów.", true)
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement