package userbot import ( "context" "github.com/rs/zerolog/log" "math/rand" "time" ) func ProfileTask(b *Userbot) func() { return func() { rand.Seed(time.Now().UnixNano()) time.Sleep(time.Duration(rand.Float64()*40) * time.Minute) _, err := b.Sender.Resolve("@StartupWarsBot").Text(context.Background(), "/compact") if err != nil { log.Error().Err(err) return } } }