【发布时间】:2020-10-21 22:24:47
【问题描述】:
我正在尝试让我的机器人“检查”以查看我的命令中提到的人是否是机器人,但我不确定如何。这是我的代码:
@client.command(aliases=['Noob', 'NOOB'])
async def noob(ctx, member: discord.Member):
member = member.mention
text = [ f'{member} is a certified Noob:tm:',
f'{member} is a noob!!',
ctx.author.mention + f' calls {member} a noob, but they use a Uno reverse card',
ctx.author.mention + f' attemts to call {member} a noob, but fails.',
f'{member} is the biggest noob there is!!!',
f'{member} is a noob, but a really cool one tbh :eyes:',
ctx.author.mention + f' *thinks* {member} is a noob']
if [this is where I'm trying to add the check] == True:
await ctx.send('sorry, i will not betray my kind :pensive:')
else:
await ctx.send(f'{random.choice(text)}')
谢谢,
【问题讨论】:
标签: python discord discord.py