ddemid / django-slack-utils Goto Github PK
View Code? Open in Web Editor NEWA Django app for handling Slack slash commands and Events API
License: BSD 3-Clause "New" or "Revised" License
A Django app for handling Slack slash commands and Events API
License: BSD 3-Clause "New" or "Revised" License
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?
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 ๐
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.
There are a few modifications to update this to more recent django versions, at a minimum:
Is this still under dev or does it deliberately target older django? Is there a newer replacement?
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?
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.