by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    @AshleyJackson upload 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)
    Ashley Jackson
    @AshleyJackson
    Thanks.
    Oktay Sancak
    @os
    @AshleyJackson I just tried and it worked for me.
    slack.files.upload("README.rst", channels="C02693R9F")
    This message was deleted
    Oktay Sancak
    @os
    @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.
    Timo Furrer
    @timofurrer
    I could not find any information on how to get an API token other than a test token. I just want to post a message to a channel on slack on a certain event which happens in a separate application
    Anatoly
    @Sindbag
    hey, did any one catch that bug with usergroups.update method: when I'm trying to change group name to the same but with another case (from lower to upper, for example) it raises error "name_already_exists"
    Oktay Sancak
    @os
    @timofurrer You can create one from https://api.slack.com/docs/oauth-test-tokens
    Hey @Sindbag. Maybe Slack doesn't support case-sensitive naming.
    Anatoly
    @Sindbag
    actually it seems they use case insensitive names for usergroup creation/updates, but it's possible to have them case-sensitive. I guess I have to report this bug
    if anyone interested in create method for users and delete for usergroups
    also made pull-request to Slacker
    btw, Slack Team answered my question in twitter and usergroup.update really does not work with case-sensetive name changes, but should, so they will check it
    Shreyas Shinde
    @anythingrandom
    https://github.com/anythingrandom/slack-file-uploader
    wrote an implementation of slacker - A python script for uploading files to a slack channel. Also opened a pull request to slacker. os/slacker#85
    MstWntd
    @MstWntd

    The line "from slacker import Slacker" keeps giving me the error "ImportError: cannot import name Slacker"

    Note I have slacker installed..

    pip freeze | grep -i slacker
    slacker==0.9.29

    any ideas?..
    tytremblay
    @tytremblay
    anyone around?
    im trying to use slacker on google app engine and im getting an import error "ImportError: No module named slacker"
    girt-s
    @girt-s
    Hi,
    Is there a plan to release a new version? There is "thread" functionality in Slack existing for some time now. I can see it is added in github a while ago, but pypi still contains old code without threads
    Oktay Sancak
    @os
    Hey @girt-s. Sorry for the inactivity, I was busy with work. A couple of days ago we released v0.9.50.
    Brian Short
    @RufusTFir3fly_twitter

    Followed the examples and was able to post messages and play with channels and groups, however I'm having trouble with profiles and user modifications.

    Does anyone have a sample of how to pass slack.users.profile.get correctly? Having trouble with the arguments and continually get "user_not_found". And yes, i have the read.profile scope already tied to the python script. =]

    Any help is appreciated. Looking to leverage this tool to iterate user modifications and migrate users to a new email \ domain.

    Trevor Welch
    @trevorwelch
    Is Slacker only intended for use with the Legacy API tokens / test tokens?
    techied
    @techied
    Is there a way to recieve commands?