0.0.2 • Published 3 years ago

anything-send-to-chat v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Anything-send-to-chat

This project is for developer could send any message or notify to specific channel or platform.

Create new pipe

If you want to support new platform, please follow these steps to create a new one.

  • Create a new file to src/chat.pipe
    • Should having 2 functions -> verify and send
  • Binding the new platform to src/chat.pipe/index.js

How to use the pipe

  • First, you have to create a new ALIAS for your platform
    • Add new key (or room number) to .env.*
  • Create a new route (or using the /message default route) for your application

Dala!

Now, you can use the pipe that you create to sending the message. By the alias and platform ^_^