forked from GitHub/dbot
use input not params
This commit is contained in:
parent
eb84abb470
commit
8d407c39b8
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user