So I would like a little help everytime it reaches the limit it pauses as it should but then when it unpauses it just sends all the messages at the same time that was in queue can I make it so it sends the messages in the queue every 2 seconds instead of spamming at the same time?

Now it works as
!hi
hi
!hi
hi
BOT PAUSE
!hi
!hi
!hi
hi
hi
hi

I would like it to have a pause between the messages

!hi
hi
!hi
hi
BOT PAUSE
!hi
!hi
!hi
hi
2 seconds
hi
2 seconds
hi
2 seconds etc.