Browse Source

No more waiting

main
kolaente 7 months ago
parent
commit
e63383bf58
Signed by: konrad GPG Key ID: F40E70337AB24C9B
  1. 2
      main.go

2
main.go

@ -143,7 +143,7 @@ func messageOstmarkHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
func sendLoop(s *discordgo.Session, channelID string, messages []string) error {
for _, message := range messages {
time.Sleep(time.Duration(100+rand.Intn(1500)) * time.Millisecond)
//time.Sleep(time.Duration(100+rand.Intn(1500)) * time.Millisecond)
if _, err := s.ChannelMessageSend(channelID, message); err != nil {
return err
}

Loading…
Cancel
Save