kfei / slack-cleaner

:speech_balloon: Bulk delete messages and files on Slack
MIT License
1.24k stars 144 forks source link

wait time to delete message #76

Closed grambharos closed 5 years ago

grambharos commented 5 years ago

I want to execute the command for executing messages for bots. But i get timeouts. Message: Failed to delete (429 Client Error: Too Many Requests for url: https://slack.com/api/chat.delete?token=tokenname)->

Is it possible to add a timeout in the command. like seconds and minutes before deleting a message(bot/app)?

sgratzl commented 5 years ago

it is already implemented,

--rate=<delay-in-seconds> to reduce the API call rate (which by default is unlimited).
grambharos commented 5 years ago

Thank you sgratzl