if member is None:
await ctx.send(embed=embm, delete_after=10)
else:
Requirement already satisfied: discord.py in ./.local/lib/python3.6/site-packages (1.7.3)
Requirement already satisfied: aiohttp<3.8.0,>=3.6.0 in ./.local/lib/python3.6/site-packages (from discord.py) (3.7.4.post0)
Requirement already satisfied: attrs>=17.3.0 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (21.4.0)
Requirement already satisfied: typing-extensions>=3.6.5 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (4.1.1)
Requirement already satisfied: idna-ssl>=1.0 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (1.1.0)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (1.7.2)
Requirement already satisfied: async-timeout<4.0,>=3.0 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (3.0.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (5.2.0)
Requirement already satisfied: chardet<5.0,>=2.0 in ./.local/lib/python3.6/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (4.0.0)
Requirement already satisfied: idna>=2.0 in ./.local/lib/python3.6/site-packages (from idna-ssl>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py) (3.3)
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
тут написано предупреждение изза него не может не работатьт что-либо
@bot.command()
async def smoke(ctx, member: typing.Optional[discord.Member] = None):
emb = discord.Embed(title="Реакция: курить",description=f"{ctx.author.mention} курит.",timestamp=ctx.message.created_at, colour=discord.Color.darker_grey())
emb.set_image(url=(random.choice(smoke_gifs)))
emb.set_footer(text="{}".format(ctx.author.name), icon_url=ctx.author.avatar_url)
emb2 = discord.Embed(title="Реакция: курить",description=f"{ctx.author.mention} курит вместе с {member.mention}",timestamp=ctx.message.created_at, colour=discord.Color.darker_grey())
emb2.set_image(url=(random.choice(smoke_gifs)))
emb2.set_footer(text="{}".format(ctx.author.name), icon_url=ctx.author.avatar_url)
if member is not None:
await ctx.send(embed=emb2)
else:
await ctx.send(embed=emb)