fixed handling on league claim
This commit is contained in:
parent
bac252b0be
commit
6cdfa1bd5b
|
@ -878,9 +878,11 @@ class LeagueClaimCommand(Command):
|
|||
if league.owner is None:
|
||||
league.owner = [msg.author.id]
|
||||
leagues.save_league(league)
|
||||
await msg.channel.send(f"The {league} commissioner is doing a great job. That's you, by the way.")
|
||||
await msg.channel.send(f"The {league.name} commissioner is doing a great job. That's you, by the way.")
|
||||
return
|
||||
else:
|
||||
await msg.channel.send("That league has already been claimed!")
|
||||
else:
|
||||
await msg.channel.send("Can't find that league, boss.")
|
||||
|
||||
class LeagueAddOwnersCommand(Command):
|
||||
|
|
Loading…
Reference in New Issue
Block a user