For every x amount of messages sent wait x amount of time and continue

Is there a way to make it so for example, you send 1000 messages per second and you send the first 1000 messages to then wait like 1 second and continue?

You are viewing a single comment. View All
Answered by ArchieMaclean (781) [earned 5 cycles]
View Answer
ArchieMaclean (781)

@MATTHEWBECHTEL That's because you're not doing anything apart from looping.
Try replacing

# send message

with something like

print("Hello, World!")

(This will cause it to crash though, so you may want to replace the while True with something like for n in range(5). Even so, it will probably take longer than 1 second just because print takes too long to execute)