I';我是python新手,可以';我不知道如何为discord机器人制作状态更改器
所以我有一个代码可以显示状态(在底部),但我对python和脚本都是新手,有人帮我吗 我试过这样做=I';我是python新手,可以';我不知道如何为discord机器人制作状态更改器,python,discord.py,Python,Discord.py,所以我有一个代码可以显示状态(在底部),但我对python和脚本都是新手,有人帮我吗 我试过这样做= @client.event async def on_ready() await client_presence(activity=discord.Activity(name= "test1", "test2", "test3", type=discord.ActivityType.watching)) 但当然,这不起作用,因为它只是要使用“test1”,现在我不知道该怎么做,所以我来
@client.event
async def on_ready()
await client_presence(activity=discord.Activity(name= "test1", "test2", "test3", type=discord.ActivityType.watching))
但当然,这不起作用,因为它只是要使用“test1”,现在我不知道该怎么做,所以我来到这里
@client.event
async def on_ready():
await client.change_presence(activity=discord.Activity(name="You type !help | Made by Iharvested, type !baselink to obtain me!", type=discord.ActivityType.watching))
如果你想要一种方式,你可以无限循环一系列不同的状态,这是你最好的选择
statusList = ["test1", "test2", "test3"]
@client.event
async def on_ready():
while True:
for status in statusList:
await client.change_presence(activity=discord.Activity(name=status, type=discord.ActivityType.watching))
这似乎是关于,而不是。