From 9f5e2bb19ab1e955fb40d9d474a776a88b71613b Mon Sep 17 00:00:00 2001 From: Sakimori Date: Thu, 4 Feb 2021 01:28:33 -0500 Subject: [PATCH] fixes #185: no second line will now print an error message --- the_prestige.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index a769746..400d06e 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -823,6 +823,9 @@ Plays a league with a given name, provided that league has been saved on the web except ValueError: await msg.channel.send("Chief, we need a games per hour number between 1 and 12. We think that's reasonable.") return + except IndexError: + await msg.channel.send("We need a games per hour number in the second line.") + return if league_exists(league_name): league = leagues.load_league_file(league_name) @@ -1120,11 +1123,12 @@ commands = [ LeagueScheduleCommand(), LeagueTeamScheduleCommand(), LeagueRegenerateScheduleCommand(), + LeagueForceStopCommand(), CreditCommand(), RomanCommand(), HelpCommand(), StartDraftCommand(), - DraftPlayerCommand(), + DraftPlayerCommand() ] client = discord.Client()