Add Major League role check
This commit is contained in:
parent
2c737bc2ce
commit
01e531cef7
@ -1028,6 +1028,18 @@ class Gameplay(commands.Cog):
|
|||||||
if 'Minor' in league:
|
if 'Minor' in league:
|
||||||
league_name = 'minor-league'
|
league_name = 'minor-league'
|
||||||
elif 'Major' in league:
|
elif 'Major' in league:
|
||||||
|
can_play = False
|
||||||
|
for x in interaction.user.roles:
|
||||||
|
if x.name == 'PD - Major League':
|
||||||
|
can_play = True
|
||||||
|
|
||||||
|
if not can_play:
|
||||||
|
await interaction.edit_original_response(
|
||||||
|
content=f'Ope. Looks like you haven\'t received the **PD - Major League** role, yet!\n\n'
|
||||||
|
f'To play **Major League** games, you need to defeat all 30 MLB teams in the Minor League '
|
||||||
|
f'campaign. You can see your progress with `/record`.\n\n'
|
||||||
|
f'If you have completed the Minor League campaign, go ping Cal to get your new role!')
|
||||||
|
return
|
||||||
league_name = 'major-league'
|
league_name = 'major-league'
|
||||||
else:
|
else:
|
||||||
await interaction.edit_original_response(
|
await interaction.edit_original_response(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user