Skip to content

ma91n/slackrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

slackrm is simple tool to remove slack comment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages