Comments (6)
Thanks for the PR!
from slack-autoarchive.
sounds reasonable. send a PR if you want.
from slack-autoarchive.
This is beyond my skill set for now, so probably won't be able to get to it for several weeks or months. Might be better suited for someone on the project more familiar with the Slack API.
from slack-autoarchive.
Turn out this was a bit easier than I thought it would be.
Nothing in the Python code actually needs to be changed. It's just README.md
that should be updated so as to reflect what permission scopes the particular Slack app needs.
When using the OAuth token, the script just kept spitting out errors. The script doesn't really return any error message from Slack, but I just went through slack-autoarchive.py
looking at all the api_endpoints
. Then I looked through Slack's documentation for the particular API methods. Turns out that for the particular Slack app, you can look up particular methods right in the search bar for the permission scopes. Some of the script's methods overlap for the particular permission scopes that they need. Anyway, I have a complete list now:
channels:history
channels:read
channels:write
chat:write:bot
chat:write:user
Easy enough once you add those permission scopes. I'll update README.md
and send a pull request. Thanks.
from slack-autoarchive.
great, sounds like a reasonable PR. After you send it, I'll close this issue.
from slack-autoarchive.
#32 should be all we need here.
from slack-autoarchive.
Related Issues (16)
- Support custom archive messages
- Switch to pipeline-based code flow HOT 1
- requests throttling not working
- Setting WHITELIST_KEYWORDS to any value throws an error HOT 1
- Fails to run on python 3.6.5 HOT 1
- I want auto close private channel HOT 2
- TypeError: not enough arguments for format string HOT 2
- Missing Requirements
- How can we archive channels which are inactive from last 180 days. HOT 2
- TypeError: argument of type 'NoneType' is not iterable HOT 3
- Scopes organization has changed HOT 8
- TypeError: 'NoneType' object has no attribute '__getitem__' HOT 5
- Setting Days Inactive and Min Members both to 0 pulls only a few channels. HOT 7
- TypeError: 'NoneType' not iterable HOT 1
- rate limiting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-autoarchive.