2022-04-23 21:27:43 +02:00
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
"brainbaking.com/go-jamming/app/mf"
|
|
|
|
"brainbaking.com/go-jamming/common"
|
|
|
|
)
|
|
|
|
|
|
|
|
type StringNotifier struct {
|
|
|
|
Output string
|
|
|
|
Conf *common.Config
|
|
|
|
}
|
|
|
|
|
2022-04-28 09:28:16 +02:00
|
|
|
func (sn *StringNotifier) NotifyInModeration(wm mf.Mention, data *mf.IndiewebData) error {
|
|
|
|
sn.Output = "in moderation!"
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (sn *StringNotifier) NotifyReceived(wm mf.Mention, data *mf.IndiewebData) error {
|
|
|
|
sn.Output = "received!"
|
|
|
|
return nil
|
2022-04-23 21:27:43 +02:00
|
|
|
}
|