Hotfix pitch menu bug due to Null current_players

This commit is contained in:
Vivek Santayana 2021-07-27 11:34:47 +01:00
parent 46fb9cf1fd
commit d38ead1c49

View File

@ -148,7 +148,7 @@ class PlayerCommands(commands.Cog, name='Player Commands'):
return
await player.remove_roles(game, reason=f'`/player remove` command issued by {ctx.author.display_name}`.')
t = lookup[guildStr][rStr]['time']
if data[guildStr][t][rStr]['current_players'] <= 1: data[guildStr][t][rStr]['current_players'] = None
if data[guildStr][t][rStr]['current_players'] <= 1: data[guildStr][t][rStr]['current_players'] = 0
else: data[guildStr][t][rStr]['current_players'] -= 1
hm = data[guildStr][t][rStr]['header_message']
tc = discord.utils.find(lambda x: x.id == lookup[guildStr][rStr]['text_channel'],ctx.guild.channels)