我想将用户“ Samsam”移动到用户“所有者语音聊天”。 我想将他从“语音聊天3”移到“所有者语音聊天”。 我知道我可以手动执行此操作,但是我希望有一个自动为我执行该操作的机器人。
有一个移动用户的功能,我认为这是一个 http://discordpy.readthedocs.io/en/latest/api.html#discord.Client.move_member
这是我当前的代码,因为这是一个新的机器人,所以我只设置了一些命令。
@client.event
async def on_message(message):
if message.content == '!ping':
await client.send_message(message.channel,'Pong!')
if message.content.startswith('!weirdsentences'):
randomlist = ["If you follow your heart, It will only lead to your arteries.","Ya know if you blew up the sun it would make the globe cool. Theoretically","Hey dad, can you eat me? **eats kid**","JOKE: The earth is flat. Why? **ICE WALL.**","Why would you do this command"]
await client.send_message(message.channel,(random.choice(randomlist)))
client.run('XXXX')