slackrm

command module
v0.0.0-...-af00a48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

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.

copy link

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

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

License

This project is licensed under the Apache License 2.0 License - see the LICENSE file for details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL