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

How Do I Push To Slack? #16

Open
brandontj opened this issue Jul 29, 2016 · 11 comments
Open

How Do I Push To Slack? #16

brandontj opened this issue Jul 29, 2016 · 11 comments

Comments

@brandontj
Copy link

brandontj commented Jul 29, 2016

I've read the guide and my command line looks like this except --slack-webhook is all on the same line. I'm not sure what I am doing wrong.

image

@jmshal
Copy link
Owner

jmshal commented Jul 29, 2016

Which version of the CLI are you running? I recently pushed a fixed which resolved a fatal runtime error. Also, it's worth adding the --forever flag in that command to prevent it exiting when the PokéVision API is experiencing downtime.

@brandontj
Copy link
Author

I am using version 1.0.8. I just ran it again and added in the --forever flag. When I use a browser to go to my webhook url it says "Bad Token". Is that normal?

@jmshal
Copy link
Owner

jmshal commented Jul 29, 2016

Sounds like it should be working then.

The "Bad Token" thing is probably OK, because the webhook expects there to be a payload passed to it. And you going to it in your browser doesn't pass anything.

Are you getting any errors in your console?

@brandontj
Copy link
Author

Ah that's what I figured but thought I should make sure. No i'm not getting any errors in the console it just alerts me of the pokemon. I'm on a mac running el capitan

@jmshal
Copy link
Owner

jmshal commented Jul 29, 2016

If you try adding --notify, are you getting desktop notifications? Or is that not working either?

@brandontj
Copy link
Author

brandontj commented Jul 29, 2016

It was earlier now after the last command the command terminal just idles regardless of if the last command is --notify or '--ignore=Drowzee' even after re running the curl command

Edit: After a restart the --notify is working but still nothing on slack

@jmshal
Copy link
Owner

jmshal commented Jul 30, 2016

Can you confirm this is still happening for you? I've had no other reports, and I can confirm it's still working for me on my end.

@brandontj
Copy link
Author

It's still happening. Everything except slack notifications seems to work

screen shot 2016-07-30 at 10 49 26 am
screen shot 2016-07-30 at 10 55 53 am

@jmshal
Copy link
Owner

jmshal commented Jul 31, 2016

Looks like the command you're running is using the curly quotation marks (”) instead of the standard boring quotation mark ("). Not sure it that would make a difference, but I suspect it's the issue here.

@brandontj
Copy link
Author

Interesting i'm not sure how to even type the curly quotation mark. I'll give that a try as soon as PokeVision is working again and update this

@jmshal
Copy link
Owner

jmshal commented Jul 31, 2016

TextEdit automatically substitutes normal quotes for the fancy ones. If you wrote out the command there first, that could have been it.

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

No branches or pull requests

2 participants