Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ma91n/slackrm

slackrm is simple tool to remove slack comment
https://github.com/ma91n/slackrm

cli go go-cli golang

Last synced: 6 days ago
JSON representation

slackrm is simple tool to remove slack comment

Awesome Lists containing this project

README

        

# rmslack
rmslack is simple tool to remove slack comment

## Installation

slackrm or upgrade slackrm with this command.

```bash
go get -u github.com/laqiiz/slackrm
```

## Usage

```bash
slackrm [options]
```

### Example

Get slack comment url to delete.

![copy link](docs/copy_link.png)

Run slackrm command.

```bash
# Basic
slackrm -url -token
```

If access token is too long then you can set environment variables.

```bash
# Use environment variables
export SLACK_API_TOKEN=
slackrm -url
```

### Options

```bash
>slackrm -help
Usage of slackrm:
-c string
-c slack channel name
-channel string
slack channel name
-timestamp string
timestamp of remove target comment (default "0")
-tk string
slack access channel
-token string
slack api access token
-ts string
timestamp of remove target comment (default "0")
-u string
-u delete target slack comment url
-url string
url is delete target slack comment url
```

## FAQ

1. Work with http proxy?
* Yes. You can run with proxy options.
```bash
export http_proxy=http://proxy.example.com:PORT
export https_proxy=$http_proxy
```
2. I have error on: "x509: certificate signed by unknown authority"
* Try -insecure option.
```bash
slackrm -url -insecure true
```

## License

This project is licensed under the Apache License 2.0 License - see the [LICENSE](LICENSE) file for details