From eb84abb470662feee3454e58ded0c717a6b4b3ed Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 20 Feb 2014 20:42:09 +0000 Subject: [PATCH] change ~calculate to ~wr --- modules/wolframalpha/wolframalpha.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/wolframalpha/wolframalpha.js b/modules/wolframalpha/wolframalpha.js index bf0105e..9af65c5 100644 --- a/modules/wolframalpha/wolframalpha.js +++ b/modules/wolframalpha/wolframalpha.js @@ -9,7 +9,7 @@ var _ = require('underscore')._, var wolframalpha = function(dbot) { this.commands = { - '~calculate': function(event) { + '~wr': function(event) { var wolfram = new Client(this.config.api_key), query = event.params[1]; wolfram.query(query, function(err, result) { @@ -37,6 +37,7 @@ var wolframalpha = function(dbot) { }); } }; + this.commands['~wr'].regex = [/^wr ([\d\w\s-]*)/, 2]; }; exports.fetch = function(dbot) {