https://github.com/flows-network/slack-calculator
Slack Calculator bot
https://github.com/flows-network/slack-calculator
Last synced: about 1 month ago
JSON representation
Slack Calculator bot
- Host: GitHub
- URL: https://github.com/flows-network/slack-calculator
- Owner: flows-network
- Created: 2023-01-16T04:36:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T05:00:57.000Z (about 2 years ago)
- Last Synced: 2024-11-07T03:41:46.009Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack calculator Bot
[Deploy this function on flows.network](#deploy-slack-calculator-app-on-your-channel), and you will get a Slack bot that calculating the result of a mathematical formula.
This is a simple example to show how flows.network works when the trigger and action both happens in Slack.
## Deploy Slack calculator App on your channel
To install this Slack calulator App, we will use [flows.network](https://flows.network/), a serverless platform enables you to deploy your own app quick and easy in three simple steps.
### Fork this repo and write your own code
Fork [this repo](https://github.com/flows-network/slack-calculator) and replace parameters in the red boxes in the image below with your own Slack workspace and channel.

### Deploy the code on flows.network
1. Sign up for an account for deploying flows on [flows.network](https://flows.network/). It's free.
2. Click on the "Create a Flow" button to start deploying the ChatGPT GitHub APP
3. Authenticate the [flows.network](https://flows.network/) to access the `slack-calculator` repo you just forked.
4. Click the Deploy button to deploy your function.
### Configure SaaS integrations
Next, the flows.network will direct you to configure the SaaS integration required by your flow.

Here we can see, we need to configue one SaaS integration.
Click on the "Connect/+ Add new authentication" button to authenticate your Slack account. You'll be redirected to a new page where you must grant [flows.network](https://flows.network/) permission to install the `flows-network-integration` bot on your Slack workspace. The workspace is the one you changed in the code.
Now, click the Check button to see your flow details. As soon as the flow function's status becomes `ready` and the flow's status became `running`, the Slack calculator App goes live. Go ahead and calulate away in Slack!

> [flows.network](https://flows.network/) is still in its early stages. We would love to hear your feedback!
## Others
To build locally
```
cargo build target wasm32-wasi --release
```