例如,我尝试在一般聊天中每 10 秒写一次"你好"。我怎么做?我正在使用任务功能。
channel = client.get_channel('channel id')
@tasks.loop(seconds=10)
async def sendmessage():
await channel.send("hello")
海绵宝宝撒
慕无忌1623718
忽然笑
ibeautiful
慕的地6264312
相关分类