bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

Post to direct message? #10

Closed aimless55 closed 8 years ago

aimless55 commented 8 years ago

Can I use this to post a file into a direct message, or does it only work for channels?

bcicen commented 8 years ago

Currently you can only post to channels and private groups. I'll leave this open to track adding support for direct message though.

toejough commented 8 years ago

:+1:

bcicen commented 8 years ago

Posting to direct message added in latest release

toejough commented 8 years ago

Is there a new flag to use this feature? I tried just substituting a user name for the channel, but got "missing_scope":

echo "testing..." | ~/Downloads/slackcat-0.8-darwin-amd64 -c username
missing_scope
slackcat Slack API Error: No such channel, group, or im

I tried @username and '@username', too, same error. Messaging channels still works fine.

bcicen commented 8 years ago

@toejough -- there is no specific flag, but the feature does require a new permission scope(users:read) to work. You should be able to enable this by re-generating a new token with --configure.

toejough commented 8 years ago

ah, that makes sense. aaaand verified. thank you very much, this is a really cool tool!

bcicen commented 8 years ago

Great! Glad you're enjoying it :)

dmil commented 6 years ago

Not quite working for me, has this feature been disabled?

I'm also getting

slackcat connected to DPI-691M as dhrumil.mehta
slackcat No such channel, group, or im

I know the username is spelled correctly, and I'm on slackcat version 1.4, build

Thanks.

bcicen commented 6 years ago

@dmil can you verify the username you're using matches what's shown in the output of slackcat --list?