kha7iq/pingme

trouble to create slack token

Closed this issue · 2 comments

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 ??

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

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 ?