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

trouble to create slack token #67

Closed
changchichung opened this issue Jun 29, 2022 · 2 comments
Closed

trouble to create slack token #67

changchichung opened this issue Jun 29, 2022 · 2 comments

Comments

@changchichung
Copy link

in https://pingme.lmno.pk/#/services?id=slack
I know I need a "token" and a channel id to send message via pingme to slack.
the channel id iseasy to find URL ( click any of your channels , and get this URL https://app.slack.com/client/{ team_id} /{ channel_id } , is that correct ? )
but how to create a token ?
I try to create a token in apps

but which is the token pingme need ??
I try all these values in pingme , but always return

chc@hq39:~$ pingme slack -t "xxxxxxx758.373xxxxxxxx" --channel "D*****P32" --msg "test"
2022/06/29 15:10:53 failed to send message to Slack channel '' at time '': invalid_auth: send notification
chc@hq39:~$

is there any instructions to guide to create a valid token and get the channel id in slack for pingme ??

@kha7iq
Copy link
Owner

kha7iq commented Jul 4, 2022

You have to create a bot token and use that to send messages.
You can find more info about it here : https://slack.com/help/articles/115005265703-Create-a-bot-for-your-workspace

@changchichung
Copy link
Author

yeah , I find the way to create the valid token in slack some days ago just after I creating this issue.
I think it might be helpful to add the slack URL to README , what dou you think ?

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

No branches or pull requests

2 participants