A dumb little MathJS-based Slack Slash command plugin that allows you to do Math on the Slack command line, mainly for me to try out slash commands in Slack, but also handy if you want to do math.
- export SLACK_TOKEN=XXXXXXXX
- node server.js
- Setup your Slack slash command in the Slack admin UI. The SLACK_TOKEN env. variable needs to match the one Slack gives you.
- /math 2 + 2 // just use numbers
- /math sqrt(a+b) || {"a":2, "b":3} //See mathjs, you can pass in scope