https://github.com/sfreiberg/progress
Create Slack progress bars
https://github.com/sfreiberg/progress
go golang slack slack-bot slackbot
Last synced: 5 months ago
JSON representation
Create Slack progress bars
- Host: GitHub
- URL: https://github.com/sfreiberg/progress
- Owner: sfreiberg
- License: mit
- Created: 2018-05-19T04:37:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T18:55:21.000Z (almost 7 years ago)
- Last Synced: 2024-06-19T04:22:47.484Z (almost 2 years ago)
- Topics: go, golang, slack, slack-bot, slackbot
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 67
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Progress
[](https://godoc.org/github.com/sfreiberg/progress)
## About
Progress is a go library for creating a live progress bar into slack. Inspiration came from [slack-progress](https://github.com/bcicen/slack-progress/).
## Demo

## Example
```go
token := "super-secret-slack-token"
channel := "demo"
pbar := progress.New(token, channel, nil)
for i := 0; i <= pbar.Opts.TotalUnits; i++ {
if err := pbar.Update(i); err != nil {
log.Printf("Error updating progress bar: %s\n", err)
}
}
```