Joey
10/17/2022, 3:27 PMJason Kleinberg
10/17/2022, 9:39 PMsend('email: dev-team, slack: #general, sms: jen', msg)
Why not go for this?
const message = 'We have a new user in our app, reach out!'
send({
message,
transports: [
{ email: 'dev-team' },
{ email: 'support' },
{ slack: '#general' },
{ slack: '#support' },
{ sms: 'sam' }.
{ sms: 'jen' },
],
})
You could do them as an object instead of the transports array, but then you wouldn’t be able to send different arguments to them. You also wouldn’t be able to send to multiple endpoints (channels, email addresses, phone numbers, etc.)
Now as for the value… I’m sorry, but it isn’t likely going to be useful over a battle-tested open-source alternative with Logstash. Alternatively, developers will likely opt to use the Slack SDK, email module, or Twillio as needed.
If you had included a link to the source code, I could have taken a look at it to be more specific.
I want to be clear. I don’t think that this is a bad project. It has a lot of juicy integrations, and there is a ton of learning value there. If your goal is to get more experience with this type of thing, KEEP GOING! You’ll learn a lot!
Just don’t expect this to be a revenue stream. There just isn’t enough value over alternatives that have been around are completely free.
I hope that is helpful. Good luck!Joey
10/18/2022, 12:23 AMJoey
10/18/2022, 12:45 AM