@os hi. Is there configuration manual for this wrapper ?
Oktay Sancak
@os
@jeyraof Configuration is very straightforward. All you need to do is to use your Slack token. Slacker follows the same API naming as the original Slack API, even the parameter names are the same. Have you looked at the README file for examples?
Jaeyoung Lee
@jeyraof
Yep, thanks. I've seen 'init.py for selecting parameters. XD
Oktay Sancak
@os
Great! Glad to hear that. Enjoy.
Jaeyoung Lee
@jeyraof
Thank you for awesome lib lol.
Oktay Sancak
@os
No worries. I'm glad you liked it :)
_
Alex Jurkiewicz
@alexjurkiewicz
yo, I opened #39 if you want to chat
Alex Jurkiewicz
@alexjurkiewicz
ping @os
Aurthes
@Aurthes
I tried to use files.upload, which worked, but the thing is that channels attribute didn't seem to work
Masahiro Kiura
@wasabi0522
@os Hi, I opened PR for pep8 check. Please review.
Harry Reeder
@hreeder
Opened PR #47 for bringing presence from users.list into responses. I've done it in such a way that you can just pass in presence=True and the function will supply 1 or 0 as I felt that was more pythonic
AndrezAguayo
@AndrezAguayo
Hi have a question. I am self tough and new to using none standard lib libs so I am sorry if this is a dumb question. I was able to get things working nicely in Python 3.4.3 but not in Python 2.7.2. This is the error I get , I was wondering if any one had any idea what this is and what the problem could be? Thank you very much for a sweet lib. "Warning (from warnings module): File "C:\Python27\lib\site-packages\requests\packages\urllib3\util\ssl_.py", line 90 InsecurePlatformWarning InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning."
AndrezAguayo
@AndrezAguayo
Hi, I seemed have gotten it to work, the way installed it must of been wacky, so deleted my python install and did it properly and it now is working.
austinfrey
@austinfrey
my bot seems to be set to away by default. i;ve tried using slack.users.set_active() to no avail. any suggestions?
Jessica Burns
@Astayonix
I'm trying to use slash commands with my slack app. Can slacker help with that?
Ashley Jackson
@AshleyJackson
Within the past couple of days, all attempts at uploading files to slack have failed. They have repeatedly sent back the "no_file" error from slack. This issue has occurred on 0.9.10 and after upgrading, it continues to happen on 0.9.15. Even when using your example that you have on your README, it still has the same issue.
And then when I use slack.files.upload(file='<filename>') it errors back: "TypeError: upload() got an unexpected keyword argument 'file'"
So it seems that the slack API requires either a file or content argument, however Slacker isn't sending one.
Oktay Sancak
@os
@AshleyJacksonupload takes a file_ argument, not file
Ashley Jackson
@AshleyJackson
Using file_ brings back the same result "slacker.Error: no_file"
Oktay Sancak
@os
I haven't tried it yet but it seems like API signature has changed as well (now it requires file or content which used to be file only). I'll look into that tonight (GMT+10)
@AndrezAguayo Documentation says "This method lets the slack messaging server know that the authenticated user is currently active". My understanding is that it only makes the current user (token owner) active, not the bot user. See https://api.slack.com/methods/users.setActive.
Oktay Sancak
@os
@Astayonix You can respond to slash commands using Slacker, however Slacker doesn't have RTM support so you can't listen to channels in real-time.
Ashley Jackson
@AshleyJackson
This message was deleted
@os Just tested it myself. Apparently it returns a "no_file" when the file itself has no data in it. I tested it with a file that had at least a Byte and it worked. It still doesn't explain why original script stopped working. I will keep you posted if I find anything. Thanks.
Oktay Sancak
@os
@AshleyJackson Cool, no worries
OliPicard
@OliPicard
@os Thanks for making this amazing lib, I noticed you have support for oauth however I cannot find any exmaples where this has been used? I know your improving the docs and thought it might be a good idea to suggest adding an oauth verification example. Thanks again :)
Oktay Sancak
@os
@OliPicard Thanks! I haven't used it myself but Slacker's method signatures should exactly match with the official API. You might want to look at https://api.slack.com/methods/oauth.access and https://api.slack.com/docs/oauth for more information. I'll try to add more examples once I get a chance.