Skip to content

A simple slash command for doing math in slack that you can run yourself. Uses MathJS.

License

Notifications You must be signed in to change notification settings

gsingers/slack-math-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Math Plugin

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.

Running

  1. export SLACK_TOKEN=XXXXXXXX
  2. node server.js
  3. Setup your Slack slash command in the Slack admin UI. The SLACK_TOKEN env. variable needs to match the one Slack gives you.

Examples

  1. /math 2 + 2 // just use numbers
  2. /math sqrt(a+b) || {"a":2, "b":3} //See mathjs, you can pass in scope

About

A simple slash command for doing math in slack that you can run yourself. Uses MathJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published