xxxxxxxxxx
from nextcord.ext import tasks
variable = 5
@tasks.loop(seconds = 10)
async def check():
channel = await bot.fetch_channel(your channel id)
print(channel) #Remove this just used it to 'debug' an error
if variable == 5:
await channel.send("Hello")
check.start()