kha7iq / pingme

PingMe is a CLI which provides the ability to send messages or alerts to multiple messaging platforms & email.
https://pingme.lmno.pk
MIT License
771 stars 43 forks source link

trouble to create slack token #67

Closed changchichung closed 2 years ago

changchichung commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 ?