mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
change ~calculate to ~wr
This commit is contained in:
parent
c8d46d73a3
commit
eb84abb470
@ -9,7 +9,7 @@ var _ = require('underscore')._,
|
|||||||
|
|
||||||
var wolframalpha = function(dbot) {
|
var wolframalpha = function(dbot) {
|
||||||
this.commands = {
|
this.commands = {
|
||||||
'~calculate': 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.params[1];
|
||||||
wolfram.query(query, function(err, result) {
|
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) {
|
exports.fetch = function(dbot) {
|
||||||
|
Loading…
Reference in New Issue
Block a user