slack-cleaner | : speech_balloon : Bulk delete messages and files on Slack | Chat library
kandi X-RAY | slack-cleaner Summary
kandi X-RAY | slack-cleaner Summary
:speech_balloon: Bulk delete messages and files on Slack
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Clean up a channel or group
- Cleans up a channel
- Delete a message from a channel
- Get the mpdirect user id by name
- Get direct user id by name
- Get channel id by name
- Get group ID by name
- Return the id of a given key
- Get user id by name
- Increase the total count
- Remove files
- Remove files from Slack
- Delete a file
slack-cleaner Key Features
slack-cleaner Examples and Code Snippets
s, err = slack.New(slack.SetToken("test token retrieved from Slack"))
// Start the OAuth process
// First, generate a random state
uuid, err := random.New()
if err != nil {
panic(err)
}
conf := &oauth2.Config{
ClientID: "Your client ID"
# Create a vector with 500,000 items
n <- 500000
values <- paste0(sample(c("yes", "no"), n, replace = TRUE),
as.integer(runif(n, 0, 10000)))
# data looks like:
values[1:3]
#> [1] "no3697" "yes1906" "yes6738"
clean_logica
#in deploy/shared.rb add
require 'capistrano/slack'
#in deploy.rb
# required
set :slack_token, "webhook_token" # comes from inbound webhook integration
set :slack_room, "#general"
set :slack_subdomain, "kohactive" # if your subdomain is kohactive.s
Community Discussions
Trending Discussions on slack-cleaner
QUESTION
I am using an EC2 instance, crontab, and slack-cleaner to delete all Slack messages older than 48 hours. To do this, I created delete_slack.sh (I've deleted my slack api token):
...ANSWER
Answered 2017-Mar-01 at 00:38Sounds like the PATH you get via cron and the PATH you get through your login are different.
Either set the PATH in your script or use the absolute path to slack-cleaner
The PATH tells the shell which directories to search for executables (including scripts). You can echo $PATH
to compare your path to the one cron gives and confirm that this is the issue.
If using the absolute path works, that is simplest, but if slack-cleaner
uses other exes itself, setting the path may be better.
If you want to go the "modify PATH" method then you want to append the correct path to existing PATH and not completely overwrite it. i.e. export PATH=$PATH:/path/to/slack-cleaner-dir
. You can always use which slack-cleaner
to find out the correct path. NOTE: you want the directory without "slack-cleaner" appended to the end.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install slack-cleaner
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page