Giter VIP home page Giter VIP logo

slackcat's People

Contributors

nficano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

henhal audace smn

slackcat's Issues

Character encoding

Hi,

If sending a non-ASCII 7-bit string, I get character encoding issues with slackcat.

Example:

$ echo "Γ₯Àâ" | slackcat @myuser

This is received in Slack as

ΓƒΒ₯Àâ

What character encoding is slackcat expecting? Should I convert my input? Or is it possible to specify/override? Or is this a bug?

Use configuration file

Hello,

nice project :)

I plan on contributing and then package this for Debian.

I think it would be best to use a configuration file (json is easy and python supports it without external libs) instead of env vars, so one only needs to change that file.

In case one uses more instances of slack, separated, it could be useful to have a --config parameter to use a different file.

Since "#" is a comment on the terminal, it could be automatically prefixed if it's absent maybe.

I can do the changes myself, I'm just announcing my intention of polishing it a little bit and then including in Debian.

Bye

Slackcat under python 3.5 in git bash/msysgit on Windows fails to find "slack" module

$ slackcat
Traceback (most recent call last):
  File "c:\users\foo\appdata\local\programs\python\python35\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\foo\appdata\local\programs\python\python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\foo\AppData\Local\Programs\Python\Python35\Scripts\slackcat.exe\__main__.py", line 5, in <module>
  File "c:\users\foo\appdata\local\programs\python\python35\lib\site-packages\slackcat\__main__.py", line 8, in <module>
    import slack
ImportError: No module named 'slack'

ModuleNotFoundError: No module named 'slack'

Hi Folks. I ran pip install slackcat and then echo $PATH | slackcat "#tmp", which gives the error:

Traceback (most recent call last):
File "/home/ec2-user/.local/bin/slackcat", line 5, in
from slackcat.main import main
File "/home/ec2-user/.local/lib/python3.7/site-packages/slackcat/main.py", line 8, in
import slack
ModuleNotFoundError: No module named 'slack'

I tried pip3 install slack which got me to this error:

Traceback (most recent call last):
File "/home/ec2-user/.local/bin/slackcat", line 5, in
from slackcat.main import main
File "/home/ec2-user/.local/lib/python3.7/site-packages/slackcat/main.py", line 9, in
from ioutil import Stream
ModuleNotFoundError: No module named 'ioutil'

I then tried pip3 install ioutil but it failed:

Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ioutil (from versions: none)
ERROR: No matching distribution found for ioutil

I'm used to something like pipenv install. What am I missing? Thank you.

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.