在用户写下某个短语后,机器人应该将用户踢出不和谐的语音频道,但这不会发生。
@bot.command()
async def kickm(ctx):
member_id = 159985870458322944
member: Member = ctx.guild.get_member(member_id)
await member.kick(reason=f'{ctx.author} Выгнал {member}')
@client.event
async def on_message(message, ctx=None):
if message.author == client.user:
return
if message.content.startswith("..."):
time.sleep(2)
await message.channel.send(",,,")
time.sleep(2)
await kickm