I have a little spam bot for discord.
import pyautogui
from time import sleep
time = 0
while time != 10:
time += 1
sleep(1)
print ("Get Ready" + str (time) )
def spam(msg, maxMsg):
count = 0
while count != maxMsg:
count += 1
print("send message: " + str(count ))
pyautogui.write(msg)
pyautogui.press("enter")
if count == 5 or count == 10 or count == 15:
sleep(8)
spam('Test', 15)
My problem is in if count
the cap here would be 15 but i want it to be 500 without writing or count == 20 or count == 25
until 500 is there a way to say sleep on every multiple of 5?