owncast-webhook/internal/store/test_message.go

32 lines
523 B
Go

package store
import (
"fmt"
"math/rand"
"github.com/gempir/go-twitch-irc/v4"
)
type TestMessage struct {
Message twitch.PrivateMessage
}
func (o TestMessage) ID() string {
return fmt.Sprintf("%f", rand.Float64())
}
func (o TestMessage) Visible() bool {
return true
}
func (o TestMessage) Origin() MessageOrigin {
return MessageOriginTest
}
func (o TestMessage) Author() string {
return fmt.Sprintf("%f", rand.Float64())
}
func (o TestMessage) Content() string {
return fmt.Sprintf("%f", rand.Float64())
}