From 864c1af655cf6783ad6dcbd0368d7ff29e5b533a Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 3 Jan 2021 23:43:04 -0500 Subject: [PATCH] made day=1 give first pitcher, not second --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index d357b4d..07c2e14 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -126,9 +126,9 @@ class StartGameCommand(Command): league = command.split("\n")[0].split("--league ")[1].split("-")[0].strip() try: if "-d " in command.split("\n")[0]: - day = int(command.split("\n")[0].split("-d ")[1].split("-")[0].strip()) + day = int(command.split("\n")[0].split("-d ")[1].split("-")[0].strip())-1 elif "--day " in command.split("\n")[0]: - day = int(command.split("\n")[0].split("--day ")[1].split("-")[0].strip()) + day = int(command.split("\n")[0].split("--day ")[1].split("-")[0].strip())-1 except ValueError: await msg.channel.send("Make sure you put an integer after the -d flag.") return