import discord
import datetime
from discord.ext import commands, tasks
TOKEN = 'token'
client = discord.Client()
@tasks.loop(seconds=10)
channel = client.get_channel('channel id')
async def sendmessage():
await channel.send("hello")
sendmessage.start()
client.run(TOKEN)
所以这是我当前的程序,我不明白为什么当前不起作用