Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Only send chosen map embed if map veto was not done
Browse files Browse the repository at this point in the history
  • Loading branch information
lexesj committed Oct 20, 2020
1 parent 41d95f6 commit b0328f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cogs/csgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ async def pug(self, ctx: commands.Context, arg0: str = None, arg1: str = None):
await message.edit(content=message_text, embed=embed)
await message.clear_reactions()

chosen_map_embed = await self.get_chosen_map_embed(map_arg)
await ctx.send(embed=chosen_map_embed)
if map_arg is not None:
chosen_map_embed = await self.get_chosen_map_embed(map_arg)
await ctx.send(embed=chosen_map_embed)

team1_steamIDs = []
team2_steamIDs = []
Expand Down

0 comments on commit b0328f3

Please sign in to comment.