use input not params

This commit is contained in:
reality 2014-02-20 20:42:59 +00:00
parent eb84abb470
commit 8d407c39b8

View File

@ -11,7 +11,7 @@ var wolframalpha = function(dbot) {
this.commands = { this.commands = {
'~wr': function(event) { '~wr': function(event) {
var wolfram = new Client(this.config.api_key), var wolfram = new Client(this.config.api_key),
query = event.params[1]; query = event.input[1];
wolfram.query(query, function(err, result) { wolfram.query(query, function(err, result) {
if(err) { if(err) {
event.reply(dbot.t('wolf_error')); event.reply(dbot.t('wolf_error'));