owncast-webhook/internal/store/test_message.go
Simon Vieille 4a52ec3d33
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
feat(chat): add effect and improve faker
2025-09-07 20:22:16 +02:00

30 lines
483 B
Go

package store
import (
"github.com/gempir/go-twitch-irc/v4"
"github.com/go-faker/faker/v4"
)
type TestMessage struct {
Message twitch.PrivateMessage
}
func (o TestMessage) ID() string {
return faker.Sentence()
}
func (o TestMessage) Visible() bool {
return true
}
func (o TestMessage) Origin() MessageOrigin {
return MessageOriginTest
}
func (o TestMessage) Author() string {
return faker.Username()
}
func (o TestMessage) Content() string {
return faker.Sentence()
}