CitizenB / Slack-Gitsin

A beautiful Slack command line interface (CLI -> uses 20mb memory).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SlackGitsin

The Problem

We have Slack we use in our office using the Windows stand alone since the Chrome based app seems to not show notifications in the bar (highlighting the app when you have a waiting message). Nearly every day Slack has to be manually closed via task manager (all users at random times) because Slack is taking up nearly all CPU and memory on the PCs. Is this a known issue and if so is there any solution? *-Source

Are you kidding me? "8 GB ought to be enough for everyone", Don't be ridiculous.

Let me show you an example: A mix of pycharm, slack, vagrant and chrome:

Table of Contents

Installation

For Linux :

git clone https://github.com/yasintoy/Slack-Gitsin.git
cd Slack-Gitsin
sudo apt-get install lolcat figlet zenity
virtualenv -p python2.7 env
source env/bin/activate
pip install -r requirements.txt

For Mac :

git clone https://github.com/yasintoy/Slack-Gitsin.git
cd Slack-Gitsin
chmod +x setup.sh
./setup.sh

When the installation completes, add your Slack Token to settings.py.

Getting Started

Before start, you should get in the slack mode by typing:

$ python main.py

List all Slack channels

$ slack channels.list

It shows all slack channels that we have in our team.

image

Create channel

$ slack channels.create
> channel name -> 

image

Send a post to channel

$ slack chat.postMessage "Send" [CHANNEL_NAME]

You can send a post to a channel. (TODO: we'll add real time chat)

image

Join a channel in your slack team

$ slack channels.join "Join" [CHANNEL_NAME]

image

Upload a file into slack channel

You can easily upload a file your slack channel by using the SlackClient

  • First, say that you want to upload a file:
    $ slack files.upload Upload [CHANNEL_NAME]
    

image

  • Then, choice file by using the file dialog

image

  • Finally, fill out the screen

image

Features

Low Memory Usage

Notification System

We now have notification system for mac/linux

TODO

Contributing

  • Fork the repo
  • Branch it in your development environment (this is required if only you are willing to contribute frequently)
  • Hack in
  • Make a pull request
  • Chill

License

GNU GENERAL PUBLIC LICENSE

About

A beautiful Slack command line interface (CLI -> uses 20mb memory).

License:GNU General Public License v3.0


Languages

Language:Python 95.9%Language:Shell 4.1%