Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple fixes #14

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jvtrigueros
Copy link

First of all, thank you for giving me a starting point for creating a Slash Command for my Slack group.

Now, right out of the box, I couldn't get this working, and I noticed a few things were off, so I decided that instead of fixing it and moving on, I should offer them back to you, anyway here's a summary:

  • Remove :init-ns from project.clj was causing errors when using REPL
  • Add :response_url and :user keys to the :meta map, they are needed
  • Remove :post-url and use :response_url that is given to you on the initial POST
  • Update documentation

This causes a nasty error while loading up the REPL. I was a bit
confused at first but then I realized this ns didn't exist.
Both of these keys are used by post-to-slack and format-result-for-slack
As per the Slack API documentation, you don't provide a URL to respond
to, instead you are given a URL that you should POST results back to.
`format-result-for-slack` expects a certain kind of map. The code has
access to this map already, but a different one is sent instead.
`:post-url` shouldn't be mentioned as it is no longer needed
@jvtrigueros
Copy link
Author

Thanks for the feedback! I'll address them and re-submit :)

@jvtrigueros
Copy link
Author

@enforser I've made the changes requested, please review at your earliest convenience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants