0.0.2 • Published 3 years ago
anything-send-to-chat v0.0.2
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
andsend
- Should having 2 functions ->
- 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.*
- Add new key (or room number) to
- 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 ^_^
0.0.2
3 years ago