nficano / slackcat Goto Github PK
View Code? Open in Web Editor NEWConcatenate files(s), or stdin, directly to Slack. π
License: Other
Concatenate files(s), or stdin, directly to Slack. π
License: Other
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?
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
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
$ 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'
Does slackcat need tty? I am unable to output to slackcat via script in cron.
Command line and running the script locally runs ok.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.