Coder Social home page Coder Social logo

Comments (6)

JohnTheodore avatar JohnTheodore commented on August 28, 2024 1

Thanks for the PR!

from slack-autoarchive.

JohnTheodore avatar JohnTheodore commented on August 28, 2024

sounds reasonable. send a PR if you want.

from slack-autoarchive.

sethgoldin avatar sethgoldin commented on August 28, 2024

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.

sethgoldin avatar sethgoldin commented on August 28, 2024

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.

JohnTheodore avatar JohnTheodore commented on August 28, 2024

great, sounds like a reasonable PR. After you send it, I'll close this issue.

from slack-autoarchive.

sethgoldin avatar sethgoldin commented on August 28, 2024

#32 should be all we need here.

from slack-autoarchive.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.