Updated Readme. Refreshed requirements.

Purged guild.
Ready for further testing.
This commit is contained in:
2021-07-24 01:01:48 +01:00
parent 5bb9af12c9
commit 882e0b3ab8
9 changed files with 146 additions and 115 deletions

View File

@ -182,10 +182,10 @@ class Pitch(commands.Cog, name='Pitch Command'):
await ctx.channel.set_permissions(reason=f'/pitch command issued by {ctx.author.display_name}', target=returning_player, read_messages=True)
await button_ctx.send(f'```Returning Players have now been allowed access to the pitch menu.```', hidden=True)
if button_ctx.custom_id == 'allow_newcomers':
ctx.channel.set_permissions(reason=f'/pitch command issued by {ctx.author.display_name}', target=newcomer, read_messages=True)
await ctx.channel.set_permissions(reason=f'/pitch command issued by {ctx.author.display_name}', target=newcomer, read_messages=True)
await button_ctx.send(f'```Newcomers have now been allowed access to the pitch menu.```', hidden=True)
if button_ctx.custom_id == 'allow_all':
await ctx.channel.edit(reason=f'/pitch command issued by {ctx.author.display_name}', target=ctx.guild.default_role, read_messages= True, send_messages=False)
await ctx.channel.set_permissions(reason=f'/pitch command issued by {ctx.author.display_name}', target=ctx.guild.default_role, read_messages= True, send_messages=False)
await button_ctx.send(f'```All members have now been allowed access to the pitch menu.```', hidden=True)
if button_ctx.custom_id == 'close_pitches': break
else:
@ -282,7 +282,7 @@ class Pitch(commands.Cog, name='Pitch Command'):
for message in pitches[guildStr][timeslot]['messages']: await message.delete()
await control.delete()
await ctx.channel.edit(reason=f'/pitch command issued by {ctx.author.display_name}', overwrites={})
await button_ctx.send('```Pitch menu cleared. Pitches have now been concluded.```')
await button_ctx.send('```Pitch menu cleared. Pitches have now concluded.```')
def setup(client):
client.add_cog(Pitch(client))

View File

@ -1,2 +1 @@
'864651943820525609':
'867789192527478800': 867789191156203550
'864651943820525609': {}

View File

@ -1,14 +1 @@
'864651943820525609':
avatar:
'867789191156203550':
category: 867789192527478800
current_players: 0
game_title: Masks
gm: 864649599671205914
header_message: 867789196534349826
max_players: 5
min_players: null
platform: null
role: 867789191156203550
system: null
text_channel: 867789194784407552
'864651943820525609': {}

View File

@ -1,3 +1 @@
'864651943820525609':
'864649599671205914':
- 867789191156203550
'864651943820525609': {}

View File

@ -1,7 +1 @@
'864651943820525609':
'867789191156203550':
category: 867789192527478800
game_title: Masks
gm: 864649599671205914
text_channel: 867789194784407552
time: avatar
'864651943820525609': {}

Binary file not shown.