rmslack
rmslack is simple tool to remove slack comment
Installation
slackrm or upgrade slackrm with this command.
go get -u github.com/laqiiz/slackrm
Usage
slackrm [options]
Example
Get slack comment url to delete.
Run slackrm command.
# Basic
slackrm -url <your slack comment url to delete> -token <your slack api access token>
If access token is too long then you can set environment variables.
# Use environment variables
export SLACK_API_TOKEN=<our slack api access token>
slackrm -url <your slack comment url to delete>
Options
>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
- Work with http proxy?
- Yes. You can run with proxy options.
export http_proxy=http://proxy.example.com:PORT
export https_proxy=$http_proxy
- I have error on: "x509: certificate signed by unknown authority"
slackrm -url <your url> -insecure true
License
This project is licensed under the Apache License 2.0 License - see the LICENSE file for details