bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

Improve GetConversations API Call #86

Closed snowhork closed 3 years ago

snowhork commented 3 years ago

Hi, this PR is to improve getConversations function.

Our team has many channels, so getConversations is slow, and rate limited exceeding sometimes happens.

So, I have changed Limit request parameter (https://api.slack.com/methods/conversations.list) and added retry for RateLimitedError .

snowhork commented 3 years ago

@bcicen please review.

snowhork commented 3 years ago

Error printing is like this: image

bcicen commented 3 years ago

merged; thanks @snowhork !