Bug fixes

This commit is contained in:
2021-07-27 11:51:02 +01:00
parent d38ead1c49
commit 7dff3f74ec
3 changed files with 2 additions and 5 deletions

View File

@ -30,7 +30,7 @@ class Pitch(commands.Cog, name='Pitch Command'):
@cog_ext.cog_slash(
name='pitch',
description='Designates the various key roles referenced by the Bot.',
description='Initialises the menu for game pitches.',
default_permission=False,
permissions=permissions,
guild_ids=guild_ids,

View File

@ -61,9 +61,6 @@ class PlayerCommands(commands.Cog, name='Player Commands'):
await ctx.send(f'```Error: This is not a valid game role. Please mention a role that is associated with a game.```',hidden=True)
return
if not (set(ctx.author.roles) & set([ctx.guild.get_role(x) for x in conf[str(ctx.guild.id)]['roles']['admin']]) or ctx.author == ctx.guild.owner):
if not set(ctx.author.roles) & set([ctx.guild.get_role(int(x)) for x in gms[str(ctx.guild.id)] if gms[str(ctx.guild.id)][x]]):
await ctx.send(f'```Error: You are not authorised to issue this command. The command may only be issued by an administrator or by a GM.```',hidden=True)
return
if ctx.author.id != lookup[guildStr][rStr]['gm']:
await ctx.send(f'```Error: You are not authorised to issue this command. A player may only be added to a game by the GM or by an administrator.```',hidden=True)
return