1import discord
2from discord.ext import tasks
3
4# Change this to whatever seconds you want it to be
5# Or delete this line and change the x value into a number on the @tasks.loop param.
6x = 5
7
8@tasks.loop(minutes=x)
9async def send():
10
11 """Sends something every x minutes"""
12
13 response = "blah blah blah"
14
15 channel.send(response)
16
17@send.before_loop
18async def before():
19 await bot.wait_until_ready()
20
21send.start()