fixed typeerror at lines 131 and 135 of prestige
This commit is contained in:
parent
743c18e4f5
commit
7d111b1fdd
|
@ -128,11 +128,11 @@ class StartGameCommand(Command):
|
||||||
await msg.channel.send("Something about that command tripped us up. Either we couldn't find a team, or you gave us a bad number of innings.")
|
await msg.channel.send("Something about that command tripped us up. Either we couldn't find a team, or you gave us a bad number of innings.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if innings < 2:
|
if innings is not None and innings < 2:
|
||||||
await msg.channel.send("Anything less than 2 innings isn't even an outing. Try again.")
|
await msg.channel.send("Anything less than 2 innings isn't even an outing. Try again.")
|
||||||
return
|
return
|
||||||
|
|
||||||
elif innings > 30 and msg.author.id not in config()["owners"]:
|
elif innings is not None and innings > 30 and msg.author.id not in config()["owners"]:
|
||||||
await msg.channel.send("Y'all can't behave, so we've limited games to 30 innings. Ask xvi to start it with more if you really want to.")
|
await msg.channel.send("Y'all can't behave, so we've limited games to 30 innings. Ask xvi to start it with more if you really want to.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user