Convbot integrates WolframAlpha into Slack.
- Automatically converts units enclosed in
`- Try
My car is `3 meters` long
- Try
- Queries WolframAlpha with
`=<query>`*This will only show the primary pod of the WolframAlpha result, to not spam the channel.- Try
`=image of obama`
- Try
- Shows all the pods WolframAlpha gives us when you use
`=+<query>`- Try
`=+solve (x*8 + 3) = 0`
- Try
- Slash-Command /convert
/convert <unit expression>converts metric to imperial or vice versa in the same style the ` unit expression would- Try
/convert 3 meters
- Try
/convert <unit expression> to <other unit>does what you'd expect, also in the same style- Try
/convert 50 K to Fahrenheit
- Try
- Config has a list of units that we assign to either metric or imperial
-
Download the sources
-
copy
config.example.jstoconfig.js -
Fill all necessary API Tokens in
config.js. You need:- Slack Bot API token
- Slack slash-command token
- Wolfram API token
- cloudinary API key, secret and app name
-
Set the port you want the internal webserver to listen on for incoming slash commands.
To set the URL for slash command in Slack
If your domain is
example.com, and your port is3000, the URL will behttp://example.com:3000/slackslash -
Install necessary dependencies using
npm install -
Run the application using
npm start
This project is licensed under the GNU Lesser General Public License, Version 3.0