forked from viveksantayana/geas-bot
Hotfix pitch menu bug due to Null current_players
This commit is contained in:
parent
46fb9cf1fd
commit
d38ead1c49
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user