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
slackchannel? What is it job? #31
Comments
Hey @northportio, if its possible do take a look at this. |
Thanks for queuing me in @K0p1-Git. I haven't looked into this in-depth yet but I'll explore this more. My initial answer:To the best of my knowledge, I may be incorrect here but you basically create the app in slack, copy the webhook to the script and then add the app to the channel (that gives authorization to post in said channel). If you had the app added to multiple channels, I believe that's where the channel name designation matters. I will look into this more on my spare time but that's my initial answer. Hope that somewhat answers your question. |
@northportio Yep! You're correct however...(Hey! Just my two cents opinion down here) Afaik, because of security scopes, Webhooks are usually tied to a specific channel. Each webhooks uri is unique, no matter the app, destination channel etc. (You can try create a duplicate webhook, and see that the request uri is different even thought they post to the same channel, from the same app etc) To implement channel name designation, i think the following steps must be done. An user needs to go to here. Create an app, and go to Then copy the bot user oauth token, it usually starts with Then post request code shall be like:
If you're interested, you can learn more here! |
Been lookin in to slack. And must be doing something wrong or something but I don't see point in script variable slackchannel.
slackchannel="" # Slack Channel #example
It dosn't seam to do anything. It could be null value, it could have a Slack channel under my account, could be set anything like total random nonsence. Make no diffrance.
You could remove code on line 87 and 97 and still works.
"channel": "'$slackchannel'",
So what is job? Because I would nice if webhooks I have that would be able to post another channel, but it will only post to channel that defiened when creating that webhook.
The text was updated successfully, but these errors were encountered: