Skip to content

Commit

Permalink
Merge pull request #84 from stahnma/update-grabber-readme
Browse files Browse the repository at this point in the history
Clarify token usage, update dependencies, and clean up
  • Loading branch information
stahnma authored Sep 21, 2024
2 parents 40144a7 + e99f2dd commit 470de4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions slack-emoji-grabber/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
emojis
slack_emoji_grabber
.DS_Store
3 changes: 0 additions & 3 deletions slack-emoji-grabber/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

setup: ## Install nlopes/slack
go get -u github.com/nlopes/slack

fmt: ## Format all code
go fmt *.go

Expand Down
10 changes: 5 additions & 5 deletions slack-emoji-grabber/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ Do you ever wish you could grab the emojis from one slack team and keep them? Ma

# Setup

You need one module that isn't in the stdlib.

`go get -u github.com/nlopes/slack`

You can also simply run `make setup`

# Build
Expand All @@ -19,10 +15,14 @@ or run
`make`

# Configure
To run the `slack_emoji_grabber` you need your `SLACK_TOKEN` environment variable set. If you don't have it set, it won't work.
To run the `slack_emoji_grabber`, you need to set your **Slack Bot User OAuth Token** as `SLACK_TOKEN` in an environment variable set. The Slack Bot User OAuth Token can be found under "OAuth & Permissions" in Slack API: Applications settings under a configured & connected Slack Application for the workspace.

Example: `export SLACK_TOKEN="xoxb-1234567890-0987654321-AbCdEfGhIjKlMnOpQrStUvWxYz"`


# Run
`./slack_emoji_grabber`

# License
MIT

2 changes: 1 addition & 1 deletion slack-emoji-grabber/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/stahnma/slack_emoji_grabber

go 1.21.5
go 1.21

require github.com/slack-go/slack v0.12.3

Expand Down

0 comments on commit 470de4e

Please sign in to comment.