owncast-webhook/internal/test/fake.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

17 lines
286 B
Go

package test
import (
"math/rand"
"time"
"gitnet.fr/deblan/owncast-webhook/internal/store"
)
func GenerateFakeMessages() {
go func() {
for {
store.GetMessageStore().Add(store.TestMessage{})
time.Sleep(time.Duration(rand.Intn(3000-100)+100) * time.Millisecond)
}
}()
}