Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on :message, WOLFRAM_REGEX do |m|
- query = WOLFRAM_REGEX.match(m.message)[:query]
- result = Wolfram.fetch(query)
- sprintf "%s", result
- gsub(" Clash - Input nterpretation: ", "")
- m.reply result.inspect[0 .. 300]
- .gsub("a:", "answer:")
- .gsub("Math\n", "")
- .gsub(/\bAdministrativeDivision,|Airport,|City,|MetropolitanArea,|Ocean \(|assumptions: |Clash, |SubCategory|\)|Input*interpretation:*?\b\i/, "")
- .gsub("\n", "")
- .gsub(/\banswer:*| - Input: [\d\(\)\+\-\*\/\.][\d\(\)\+\-\*\/\.][\d\(\)\+\-\*\/\.] - |\b\i/, "")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement