pokevision-cli icon indicating copy to clipboard operation
pokevision-cli copied to clipboard

How Do I Push To Slack?

Open brandontj opened this issue 9 years ago • 11 comments

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

brandontj avatar Jul 29 '16 22:07 brandontj

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.

jmshal avatar Jul 29 '16 22:07 jmshal

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?

brandontj avatar Jul 29 '16 22:07 brandontj

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?

jmshal avatar Jul 29 '16 22:07 jmshal

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

brandontj avatar Jul 29 '16 22:07 brandontj

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

jmshal avatar Jul 29 '16 22:07 jmshal

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

brandontj avatar Jul 29 '16 22:07 brandontj

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.

jmshal avatar Jul 30 '16 06:07 jmshal

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

brandontj avatar Jul 30 '16 14:07 brandontj

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.

jmshal avatar Jul 31 '16 00:07 jmshal

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

brandontj avatar Jul 31 '16 03:07 brandontj

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

jmshal avatar Jul 31 '16 03:07 jmshal