slack-cleaner | An improved version | REST library
kandi X-RAY | slack-cleaner Summary
kandi X-RAY | slack-cleaner Summary
delete slack messages and files. An improved version is at:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Delete messages from a channel or private group
- Remove messages from a channel
- Deletes all messages from a list
- Clean up replies from a channel
- Deletes matching files
- Determine if the message should be deleted
- Delete a file
- Remove files from Slack
- Cleanup tests
- Delete file
- Show Slack info
- Get user id
slack-cleaner Key Features
slack-cleaner Examples and Code Snippets
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