Giter Site home page Giter Site logo

django-slack-utils's People

Contributors

ddemid avatar modasserbillah avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

django-slack-utils's Issues

Update for modern django?

There are a few modifications to update this to more recent django versions, at a minimum:

  • urls.py needs to move from url() to re_path()
  • signals.py needs to drop providing_args=

Is this still under dev or does it deliberately target older django? Is there a newer replacement?

KeyError: Command not registered

The commands declared in slack.py module are not getting registered before they are called. So, the command throws a KeyError. The decorator registers the function but the decorator does not get called at startup, so it doesn't get loaded when the command is invoked. I think the Readme is missing the instruction on how to register it.

Buttons error out as `invalid_block` in slash command response

I'm not sure if this is related to the library or setup of the app in slack settings. Here's the use case: I want to respond to a slash command with a Button with a Link. I tried sending back the following:

{
        "response_type": "in_channel",
        "blocks": [
            {
                "type": "button",
                "text": {"type": "plain_text", "text": "Link Button"},
                "url": "https://api.slack.com/block-kit",
            }
        ],
    }

But slack shows invalid_block error. Note that text only elements with formatting inside blocks work fine.

Is it related to setting up interactivity on slack settings?

Form validation fails for slash commands without text/params

Slash commands fail when there is no text or params added to the command. For example, /test would fail because text is set as required in the CommandForm definition.

If this is not intended behavior, I can open a PR to make it optional.

Thanks for the neat library, great work ๐Ÿ‘

failed with the error "dispatch_failed"

i know this is a catch all slack error but im having a hard time getting the slack commands to work. it looks like the autodetect_module code isnt finding my slack.py file. all other settings and urls have been added but i cant get slack to connect. is there anywhere obvious i could see any more details of the error/breakdown?

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.