Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on :message, "^" do |m, query__|
- response = client.query(query__)
- input = response["Input"]
- result = response.find {|pod| pod.title == "Result"}
- m.reply("#{input.subpods[0].plaintext} = #{result.subpods[0].plaintext}" || "Nie znaleziono rezultatów.", true)
- #wolfram_(wolfram_query) || "Nie znaleziono rezultatów.", true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement