Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord.py task loop

import discord
from discord.ext import tasks

client = discord.Client()

@tasks.loop(seconds = 10) # repeat after every 10 seconds
async def myLoop():
    # your work


myLoop.start()
client.run("token")
 
PREVIOUS NEXT
Tagged: #task #loop
ADD COMMENT
Topic
Name
8+4 =