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

Support Bot Token instead of Webhook URL #122

Open
lazno opened this issue Jan 27, 2024 · 1 comment
Open

Support Bot Token instead of Webhook URL #122

lazno opened this issue Jan 27, 2024 · 1 comment
Assignees

Comments

@lazno
Copy link

lazno commented Jan 27, 2024

Webhook Urls are tied to a slack channel and thus are not very flexible.

Using slack bot tokens this could be easily fixed.

I already tried to make a PR, but since i am not that familiar with node projects, i failed to release a test version.

In essence one only has to POST to https://slack.com/api/chat.postMessage with the bot token as Bearer and the channel id in the body.

I could see you guys supporting both with minimal effort by modifying buildPayload and notifySlack methods

My inspiration came from https://github.com/devkyt/slack-send-msg and several other implementations. However they do not offer such a nice message API as you guys do, so i would rather contribute here.

Copy link
Contributor

ravsam-bot bot commented Jan 27, 2024

Hello and welcome to RavSam 💜. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.

If the problem is related to a security concern, then please delete this issue and send us an email at [email protected].

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