Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from discord.ext import commands

bot = commands.Bot(command_prefix='!')

@bot.command()
async def test(ctx):
    pass

# and:


import time

# does 10 times
for n in range(6):
  print(n)
  time.sleep(1)
 
myarray = ["Ready","Set","Go","Spam Bot On"]
 # repeats for each item in the array
for item in myarray:
  print(item)
x = 1

time.sleep(3)

# conditional loop
while x<32400:
  print(x)
  x+=1
  time.sleep(1)
  
# loop forever (don't do this unless you know what you're doing, a
# nd you're limiting how fast you can go through it)
while True:
  print("Spam Mode Engaged")
  
  time.sleep(2/10)

for n in range(5):  # repeats forever
  number_of_times = 12
  for each in range(10):
    print("Hello World")


  # then wait 1 second before starting again
  time.sleep(1)