modubot / modubot.js

Modubot: the scalable and extensible IRC bot.
https://modubot.net
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

The wolframalpha plugin shouldn't return more than one result at a time #27

Closed kamaln7 closed 10 years ago

kamaln7 commented 10 years ago

.wolframalpha [result]

Examples:

.wolframalpha flood

(1/10) the rising of a body of water and its overflowing onto normally dry land

.wolframalpha flood 1

(1/10) the rising of a body of water and its overflowing onto normally dry land

.wolframalpha flood 2

(2/10) an overwhelming number or amount

.wolframalpha flood 200

Result #200 not found

reynir commented 10 years ago

There are some issues with this particular syntax. For example, .wolframalpha 1 + 1 should return 2.

I made a hack so it joines the lines. It doesn't work 100%, though.

kamaln7 commented 10 years ago

Oh, right, I completely missed that. We can just join the lines for now.

kamaln7 commented 10 years ago

f3558d679856fd62f349cf6b0d2b6407150d8fd1