Giter Club home page Giter Club logo

slack-channel-manager's Introduction

slack-channel-manager

# First, clone the repo. Then...

# Setup your environment
brew install chromedriver --cask
poetry install

# Configure the tool
poetry run manager configure # follow the prompts
poetry run manager hey # should greet you by name

# Sort!
poetry run manager sort

This tool relies on several Slack APIs which do not appear in the slack API documentation. It may break at any time.

No guarantee of CLI-command level stability is offered between various commits to this tool.

Note

Known issues that have been reported:

  • Slack client refresh: some users report that running the manager causes their desktop slack client to fully reload. This may be related to user-level themes.
  • Channel section re-creation attempts: some users reported attempts to re-create the managed section when it already exists.

⚠️ avoid Slack account takeovers

When you configure this tool, it fetches a potentially long-lived slack session cookie and stores it in a file in this directory called secret_config.json. Anyone with access to that cookie may interact with Slack on your behalf.

If you lose control of the file containing that cookie, or if someone else gains access to it, sign out of all Slack sessions immediately.

set up cron

This tool can be run in a cron to auto-sort your channels every few minutes. Before setting up a cron, ensure the script is configured (above) and run it at least once locally. To test your setup, run:

bin/run-in-poetry.sh

...if you see a successful output, you may proceed.

To configure the cron, edit your crontab file (crontab -e) to include an entry like:

*/5 * * * * <absolute-path-to-this-repo>/bin/run-in-poetry.sh >>~/cron-stdout.log 2>>~/cron-stderr.log

slack-channel-manager's People

Contributors

eliblock avatar hledley avatar

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.