Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgreben/slack-emoji-upload
Slack emoji uploader, CLI. single binary, no dependencies. linux, osx, windows.
https://github.com/sgreben/slack-emoji-upload
cli eggplant emoji golang ithascometomyattention maymays npc pepe slack slack-emoji-upload upload
Last synced: 12 days ago
JSON representation
Slack emoji uploader, CLI. single binary, no dependencies. linux, osx, windows.
- Host: GitHub
- URL: https://github.com/sgreben/slack-emoji-upload
- Owner: sgreben
- License: unlicense
- Created: 2018-09-11T14:44:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T15:45:27.000Z (almost 3 years ago)
- Last Synced: 2024-05-22T18:32:33.087Z (6 months ago)
- Topics: cli, eggplant, emoji, golang, ithascometomyattention, maymays, npc, pepe, slack, slack-emoji-upload, upload
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 32
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-emoji-upload
Upload custom Slack emoji from the CLI.
- [Get it](#get-it)
- [Use it](#use-it)
- [Authentication](#authentication)
- [Token](#token)
- [Password](#password)
- [Example](#example)
- [Token auth](#token-auth)
- [Password auth](#password-auth)## Get it
- Either download the statically linked binary from [the latest release](https://github.com/sgreben/slack-emoji-upload/releases/latest)
- ...or use `go get`:
```sh
go get github.com/sgreben/slack-emoji-upload
```## Use it
```text
slack-emoji-upload OPTIONS [FILES]Options:
-token string
Slack API token
-email string
user email (required when -token not specified)
-password string
user password (required when -token not specified)
-team string
Slack team (required when -token not specified)-notify-channel string
notify this channel on successful uploads
-quiet
suppress log output
```## Authentication
### Token
To authenticate with a token (`-token` option), you need to use a `xoxs-*` Slack API token, not a regular user token. It looks something like this:
```
xoxs-abcdefghij-klmnopqrstuv-wxyzabcdefgh-ijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrst
```[**How to obtain the Slack API token**](https://github.com/jackellenberger/emojme#finding-a-slack-token)
### Password
Alternatively, you can provide your `-team`, `-email` and `-password` to let the app obtain a `xoxs-*` API token for you.
## Example
### Token auth
```sh
$ slack-emoji-upload -token "$MY_TOKEN" emoji/*.*
2018/09/11 11:34:53 reeeeee: uploading "/tmp/emoji/reeeeee.gif"
2018/09/11 11:34:55 reeeeee: uploaded
2018/09/11 11:34:55 yeet: uploading "/tmp/emoji/yeet.png"
2018/09/11 11:34:57 yeet: uploaded
```### Password auth
```sh
$ slack-emoji-upload -team my-team -email "[email protected]" -password "hunter2" emoji/*.*
2018/09/11 11:34:53 reeeeee: uploading "/tmp/emoji/reeeeee.gif"
2018/09/11 11:34:55 reeeeee: uploaded
2018/09/11 11:34:55 yeet: uploading "/tmp/emoji/yeet.png"
2018/09/11 11:34:57 yeet: uploaded
```