Skip to content

Support Bot Token instead of Webhook URL #122

@lazno

Description

@lazno

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions