【发布时间】:2022-01-02 04:46:22
【问题描述】:
我正在制作不和谐的验证机器人。我现在有这个:
@bot.command(pass_context=True)
async def verify(ctx):
MEMBER = discord.utils.get(ctx.guild.roles, name= "♰・Member")
UNVER = discord.utils.get(ctx.guild.roles, name= "♰・No Verification")
embed=discord.Embed(title=":oktagon: Verification", description="You are now Verified!", color=0xe67e22)
await ctx.send(embed=embed)
await ctx.author.add_roles(MEMBER)
await ctx.author.remove_roles(UNVER)
@bot.event
async def on_member_join(member):
UNVEREFE = discord.utils.get(ctx.guild.roles, name= "♰・No Verification")
await ctx.author.add_roles(UNVEREFE)
我希望他在 5 秒后删除每条消息并具体删除验证成功消息。我能以某种方式做到吗?而且我还希望它删除所有其他新消息,包括该命令 .verify。我能以某种方式做到吗?谢谢。
【问题讨论】:
标签: python discord discord.py bots