diff --git a/Notifiers.md b/Notifiers.md index 183dbfd..17c8ec5 100644 --- a/Notifiers.md +++ b/Notifiers.md @@ -110,4 +110,25 @@ You can completely custom your notifications to include a detailed form. - `Title` give your input element a title - `Placeholder` optional field if you want a placeholder in input - `DbField` required field to save variable into database (read above) -- `Placeholder` optional field for inserting small hint under the input \ No newline at end of file +- `Placeholder` optional field for inserting small hint under the input + +# Adding Notifiers +To add a notifier to the Statping application, simply append your Notifier in the `AttachNotifiers()` function inside of [core/core.go](https://github.com/hunterlong/statping/blob/master/core/core.go). + +```go +// AttachNotifiers will attach all the notifier's into the system +func AttachNotifiers() error { + return notifier.AddNotifiers( + notifiers.Command, + notifiers.Discorder, + notifiers.Emailer, + notifiers.LineNotify, + notifiers.Mobile, + notifiers.Slacker, + notifiers.Telegram, + notifiers.Twilio, + notifiers.Webhook, + ) +} +``` +###### [AttachNotifiers](https://github.com/hunterlong/statping/blob/master/core/core.go#L183) \ No newline at end of file